Chris@1: Chris@1: Chris@1: Chris@1: libogg - function - ogg_sync_buffer Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1:

libogg documentation

libogg release 1.3.0 - 20110804

Chris@1: Chris@1:

ogg_sync_buffer

Chris@1: Chris@1:

declared in "ogg/ogg.h";

Chris@1: Chris@1:

This function is used to provide a properly-sized buffer for writing. Chris@1:

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. Chris@1:

The buffer exposed by this function is empty internal storage from the ogg_sync_state struct, beginning at the fill mark within the struct. Chris@1:

A pointer to this buffer is returned to be used by the calling application. Chris@1: Chris@1:

Chris@1: Chris@1: Chris@1: Chris@1: Chris@1:
Chris@1:

Chris@1: char *ogg_sync_buffer(ogg_sync_state *oy, long size);
Chris@1: 
Chris@1:
Chris@1: Chris@1:

Parameters

Chris@1:
Chris@1:
oy
Chris@1:
Pointer to a previously declared ogg_sync_state struct.
Chris@1:
size
Chris@1:
Size of the desired buffer. The actual size of the buffer returned will be this size plus some extra bytes (currently 4096). Chris@1:
Chris@1: Chris@1: Chris@1:

Return Values

Chris@1:
Chris@1:
  • Chris@1: Returns a pointer to the newly allocated buffer or NULL on error
  • Chris@1:
    Chris@1:

    Chris@1: Chris@1:

    Chris@1:


    Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1:

    copyright © 2000-2011 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.3.0 - 20110804

    Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: