• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

krfb

  • sources
  • kde-4.14
  • kdenetwork
  • krfb
  • libvncserver
zrleoutstream.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2002 RealVNC Ltd. All Rights Reserved.
3  * Copyright (C) 2003 Sun Microsystems, Inc.
4  *
5  * This is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This software is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this software; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
18  * USA.
19  */
20 
21 #ifndef __ZRLE_OUT_STREAM_H__
22 #define __ZRLE_OUT_STREAM_H__
23 
24 #include <zlib.h>
25 #include "zrletypes.h"
26 #include "rfb/rfb.h"
27 
28 typedef struct {
29  zrle_U8 *start;
30  zrle_U8 *ptr;
31  zrle_U8 *end;
32 } zrleBuffer;
33 
34 typedef struct {
35  zrleBuffer in;
36  zrleBuffer out;
37 
38  z_stream zs;
39 } zrleOutStream;
40 
41 #define ZRLE_BUFFER_LENGTH(b) ((b)->ptr - (b)->start)
42 
43 zrleOutStream *zrleOutStreamNew (void);
44 void zrleOutStreamFree (zrleOutStream *os);
45 rfbBool zrleOutStreamFlush (zrleOutStream *os);
46 void zrleOutStreamWriteBytes (zrleOutStream *os,
47  const zrle_U8 *data,
48  int length);
49 void zrleOutStreamWriteU8 (zrleOutStream *os,
50  zrle_U8 u);
51 void zrleOutStreamWriteOpaque8 (zrleOutStream *os,
52  zrle_U8 u);
53 void zrleOutStreamWriteOpaque16 (zrleOutStream *os,
54  zrle_U16 u);
55 void zrleOutStreamWriteOpaque32 (zrleOutStream *os,
56  zrle_U32 u);
57 void zrleOutStreamWriteOpaque24A(zrleOutStream *os,
58  zrle_U32 u);
59 void zrleOutStreamWriteOpaque24B(zrleOutStream *os,
60  zrle_U32 u);
61 
62 #endif /* __ZRLE_OUT_STREAM_H__ */
zrleOutStreamWriteU8
void zrleOutStreamWriteU8(zrleOutStream *os, zrle_U8 u)
zrletypes.h
zrleOutStreamWriteOpaque8
void zrleOutStreamWriteOpaque8(zrleOutStream *os, zrle_U8 u)
zrleOutStreamNew
zrleOutStream * zrleOutStreamNew(void)
zrleOutStreamWriteOpaque16
void zrleOutStreamWriteOpaque16(zrleOutStream *os, zrle_U16 u)
zrle_U16
unsigned short zrle_U16
Definition: zrletypes.h:24
zrle_U32
unsigned int zrle_U32
Definition: zrletypes.h:25
rfbBool
int8_t rfbBool
Definition: rfbproto.h:102
zrleOutStreamWriteOpaque24B
void zrleOutStreamWriteOpaque24B(zrleOutStream *os, zrle_U32 u)
zrleOutStream::zs
z_stream zs
Definition: zrleoutstream.h:38
zrleOutStreamWriteOpaque24A
void zrleOutStreamWriteOpaque24A(zrleOutStream *os, zrle_U32 u)
zrleOutStream::in
zrleBuffer in
Definition: zrleoutstream.h:35
zrleOutStream::out
zrleBuffer out
Definition: zrleoutstream.h:36
zrleOutStreamFree
void zrleOutStreamFree(zrleOutStream *os)
zrleBuffer::start
zrle_U8 * start
Definition: zrleoutstream.h:29
zrleOutStreamWriteBytes
void zrleOutStreamWriteBytes(zrleOutStream *os, const zrle_U8 *data, int length)
zrle_U8
unsigned char zrle_U8
Definition: zrletypes.h:23
zrleBuffer::end
zrle_U8 * end
Definition: zrleoutstream.h:31
zrleOutStream
Definition: zrleoutstream.h:34
zrleOutStreamFlush
rfbBool zrleOutStreamFlush(zrleOutStream *os)
zrleBuffer
Definition: zrleoutstream.h:28
zrleBuffer::ptr
zrle_U8 * ptr
Definition: zrleoutstream.h:30
zrleOutStreamWriteOpaque32
void zrleOutStreamWriteOpaque32(zrleOutStream *os, zrle_U32 u)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

krfb

Skip menu "krfb"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal