4 <title>libogg - Bitpacking Functions
</title>
5 <link rel=stylesheet
href=
"style.css" type=
"text/css">
8 <body bgcolor=white text=black
link=
"#5555ff" alink=
"#5555ff" vlink=
"#5555ff">
9 <table border=
0 width=
100%
>
11 <td><p class=tiny
>libogg documentation
</p></td>
12 <td align=right
><p class=tiny
>libogg release
1.0 -
20000615</p></td>
16 <h1>Bitpacking Functions
</h1>
17 <p>Libogg contains a basic bitpacking library that is useful for manipulating data within a buffer.
19 All the
<b>libogg
</b> specific functions are declared in
"ogg/ogg.h".
22 <table border=
1 color=black width=
50% cellspacing=
0 cellpadding=
7>
24 <td><b>function
</b></td>
25 <td><b>purpose
</b></td>
28 <td><a href=
"oggpack_writeinit.html">oggpack_writeinit
</a></td>
29 <td>Initializes a buffer for writing using this bitpacking library.
</td>
32 <td><a href=
"oggpack_reset.html">oggpack_reset
</a></td>
33 <td>Clears and resets the buffer to the initial position.
</td>
36 <td><a href=
"oggpack_writeclear.html">oggpack_writeclear
</a></td>
37 <td>Frees the memory used by the buffer.
</td>
40 <td><a href=
"oggpack_readinit.html">oggpack_readinit
</a></td>
41 <td>Initializes a buffer for reading using this bitpacking library.
</td>
44 <td><a href=
"oggpack_write.html">oggpack_write
</a></td>
45 <td>Writes bytes to the specified location within the buffer.
</td>
48 <td><a href=
"oggpack_look.html">oggpack_look
</a></td>
49 <td>Look at a specified number of bits, <=
32, without advancing the location pointer.
</td>
52 <td><a href=
"oggpack_look1.html">oggpack_look1
</a></td>
53 <td>Looks at one bit without advancing the location pointer.
</td>
56 <td><a href=
"oggpack_adv.html">oggpack_adv
</a></td>
57 <td>Advances the location pointer by a specified number of bits.
</td>
60 <td><a href=
"oggpack_adv1.html">oggpack_adv1
</a></td>
61 <td>Advances the location pointer by one bit.
</td>
64 <td><a href=
"oggpack_read.html">oggpack_read
</a></td>
65 <td>Reads a specified number of bits from the buffer.
</td>
68 <td><a href=
"oggpack_read1.html">oggpack_read1
</a></td>
69 <td>Reads one bit from the buffer.
</td>
72 <td><a href=
"oggpack_bytes.html">oggpack_bytes
</a></td>
73 <td>Returns the total number of bytes contained within the buffer.
</td>
76 <td><a href=
"oggpack_bits.html">oggpack_bits
</a></td>
77 <td>Returns the total number of bits contained within the buffer.
</td>
80 <td><a href=
"oggpack_get_buffer.html">oggpack_get_buffer
</a></td>
81 <td>Returns a pointer to the buffer encapsulated within the
<a href=
"oggpack_buffer.html">oggpack_buffer
</a> struct.
</td>
87 <table border=
0 width=
100%
>
89 <td><p class=tiny
>copyright
© 2000 xiph.org
</p></td>
90 <td align=right
><p class=tiny
><a href=
"http://www.xiph.org/ogg/vorbis/">Ogg Vorbis
</a><br><a href=
"mailto:team@xiph.org">team@xiph.org
</a></p></td>
92 <td><p class=tiny
>libogg documentation
</p></td>
93 <td align=right
><p class=tiny
>libogg release
1.0 -
20000615</p></td>