1 /********************************************************************
3 * THIS FILE IS PART OF THE Ogg Vorbis SOFTWARE CODEC SOURCE CODE. *
4 * USE, DISTRIBUTION AND REPRODUCTION OF THIS SOURCE IS GOVERNED BY *
5 * THE GNU PUBLIC LICENSE 2, WHICH IS INCLUDED WITH THIS SOURCE. *
6 * PLEASE READ THESE TERMS DISTRIBUTING. *
8 * THE OggSQUISH SOURCE CODE IS (C) COPYRIGHT 1994-1999 *
9 * by 1999 Monty <monty@xiph.org> and The XIPHOPHORUS Company *
10 * http://www.xiph.org/ *
12 ********************************************************************
14 function: packing variable sized words into an octet stream
16 ********************************************************************/
23 extern void _oggpack_writeinit(oggpack_buffer *b);
24 extern void _oggpack_reset(oggpack_buffer *b);
25 extern void _oggpack_writefree(oggpack_buffer *b);
26 extern void _oggpack_readinit(oggpack_buffer *b,char *buf,int bytes);
27 extern void _oggpack_write(oggpack_buffer *b,unsigned long value,int bits);
28 extern long _oggpack_look(oggpack_buffer *b,int bits);
29 extern long _oggpack_look1(oggpack_buffer *b);
30 extern void _oggpack_adv(oggpack_buffer *b,int bits);
31 extern void _oggpack_adv1(oggpack_buffer *b);
32 extern long _oggpack_read(oggpack_buffer *b,int bits);
33 extern long _oggpack_read1(oggpack_buffer *b);
34 extern long _oggpack_bytes(oggpack_buffer *b);
35 extern long _oggpack_bits(oggpack_buffer *b);