media/libmkv/EbmlBufferWriter.h
author Bas Schouten <bschouten@mozilla.com>
Fri, 19 Jun 2015 01:07:21 +0200
changeset 249684 54ad73e3a027524c74c2deff9bda18b65a9a536b
parent 165375 a331400db013bd863d738236fe054fc62aec415f
permissions -rw-r--r--
Bug 1167235 - Part 1: Add code exposing a PersistentBufferProvider. r=nical

#ifndef EBMLBUFFERWRITER_HPP
#define EBMLBUFFERWRITER_HPP

typedef struct {
  unsigned long long offset;
} EbmlLoc;

typedef struct {
  unsigned char *buf;
  unsigned int length;
  unsigned int offset;
} EbmlGlobal;

void Ebml_Write(EbmlGlobal *glob, const void *buffer_in, unsigned long len);
void Ebml_Serialize(EbmlGlobal *glob, const void *buffer_in,
                    int buffer_size, unsigned long len);
void Ebml_StartSubElement(EbmlGlobal *glob, EbmlLoc *ebmlLoc, unsigned long class_id);
void Ebml_EndSubElement(EbmlGlobal *glob,  EbmlLoc *ebmlLoc);

#endif