Encoder now writes data directly in the user buffer

This commit is contained in:
Jean-Marc Valin 2008-10-18 07:44:35 -04:00
parent 56cb5cf31f
commit 8679a80ee2
3 changed files with 38 additions and 42 deletions

View file

@ -29,6 +29,7 @@ struct ec_byte_buffer{
};
/*Encoding functions.*/
void ec_byte_writeinit_buffer(ec_byte_buffer *_b, unsigned char *_buf, long _size);
void ec_byte_writeinit(ec_byte_buffer *_b);
void ec_byte_writetrunc(ec_byte_buffer *_b,long _bytes);
void ec_byte_write1(ec_byte_buffer *_b,unsigned _value);