2 Header file for bitio.c.
4 Part of the swftools package.
6 Copyright (c) 2001 Matthias Kramm <kramm@quiss.org>
8 This file is distributed under the GPL, see file COPYING for details */
16 void reader_init(uchar*newdata, int newlength);
17 void skip(int length);
18 void input1(void*target);
19 void input2(void*target);
20 void input4(void*target);
24 void setinputpos(uchar*pos);
27 void readbits(u32*val,int num);
28 void readsbits(s32*val,int num);
30 s32 getsbits(int num);
43 void writer_init(struct writer_t*w, u8*data, int maxlength);
44 void writer_write(struct writer_t*w, void*data, int length);
45 void* writer_getpos(struct writer_t*w);
46 void writer_writebit(struct writer_t*w, int bit);
47 void writer_writebits(struct writer_t*w, u32 data, int bits);
48 void writer_writeu8(struct writer_t*w, u8 value);
49 void writer_writeu16(struct writer_t*w, u16 value);
50 void writer_writeu32(struct writer_t*w, u32 value);
51 void writer_resetbits(struct writer_t*w);