2
* Copyright (C) 2002 RealVNC Ltd. All Rights Reserved.
3
* Copyright (C) 2003 Sun Microsystems, Inc.
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.
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.
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,
21
#ifndef __ZRLE_OUT_STREAM_H__
22
#define __ZRLE_OUT_STREAM_H__
25
#include <zrletypes.h>
41
#define ZRLE_BUFFER_LENGTH(b) ((b)->ptr - (b)->start)
43
zrleOutStream *zrleOutStreamNew (void);
44
void zrleOutStreamFree (zrleOutStream *os);
45
rfbBool zrleOutStreamFlush (zrleOutStream *os);
46
void zrleOutStreamWriteBytes (zrleOutStream *os,
49
void zrleOutStreamWriteU8 (zrleOutStream *os,
51
void zrleOutStreamWriteOpaque8 (zrleOutStream *os,
53
void zrleOutStreamWriteOpaque16 (zrleOutStream *os,
55
void zrleOutStreamWriteOpaque32 (zrleOutStream *os,
57
void zrleOutStreamWriteOpaque24A(zrleOutStream *os,
59
void zrleOutStreamWriteOpaque24B(zrleOutStream *os,
62
#endif /* __ZRLE_OUT_STREAM_H__ */