michael@0: #ifndef EBMLBUFFERWRITER_HPP michael@0: #define EBMLBUFFERWRITER_HPP michael@0: michael@0: typedef struct { michael@0: unsigned long long offset; michael@0: } EbmlLoc; michael@0: michael@0: typedef struct { michael@0: unsigned char *buf; michael@0: unsigned int length; michael@0: unsigned int offset; michael@0: } EbmlGlobal; michael@0: michael@0: void Ebml_Write(EbmlGlobal *glob, const void *buffer_in, unsigned long len); michael@0: void Ebml_Serialize(EbmlGlobal *glob, const void *buffer_in, michael@0: int buffer_size, unsigned long len); michael@0: void Ebml_StartSubElement(EbmlGlobal *glob, EbmlLoc *ebmlLoc, unsigned long class_id); michael@0: void Ebml_EndSubElement(EbmlGlobal *glob, EbmlLoc *ebmlLoc); michael@0: michael@0: #endif