4 <title>libogg - function - ogg_sync_buffer</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>ogg_sync_buffer</h1>
18 <p><i>declared in "ogg/ogg.h";</i></p>
20 <p>This function is used to provide a properly-sized buffer for writing.
21 <p>Buffer space which has already been returned is cleared, and the buffer is extended as necessary by the size plus some additional bytes. Within the current implementation, an extra 4096 bytes are allocated, but applications should not rely on this additional buffer space.
22 <p>The buffer exposed by this function is empty internal storage from the <a href="ogg_sync_state.html">ogg_sync_state</a> struct, beginning at the fill mark within the struct.
23 <p>A pointer to this buffer is returned to be used by the calling application.
26 <table border=0 color=black cellspacing=0 cellpadding=7>
30 char *ogg_sync_buffer(ogg_sync_state *oy, long size);
39 <dd>Pointer to a previously declared <a href="ogg_sync_state.html">ogg_sync_state</a> struct.</dd>
41 <dd>Size of the desired buffer. The actual size of the buffer returned will be this size plus some extra bytes (currently 4096).
45 <h3>Return Values</h3>
48 Returns a pointer to the newly allocated buffer.</li>
54 <table border=0 width=100%>
56 <td><p class=tiny>copyright © 2000 xiph.org</p></td>
57 <td align=right><p class=tiny><a href="http://www.xiph.org/ogg/vorbis/index.html">Ogg Vorbis</a><br><a href="mailto:team@xiph.org">team@xiph.org</a></p></td>
59 <td><p class=tiny>libogg documentation</p></td>
60 <td align=right><p class=tiny>libogg release 1.0 - 20000615</p></td>