Make all FLV memory management go through a single function - further robustifies FLV library.

This commit is contained in:
Thulinma 2013-04-11 14:34:30 +02:00
parent 54a19d60e6
commit 71b918b7aa
2 changed files with 50 additions and 65 deletions

View file

@ -56,6 +56,7 @@ namespace FLV {
bool done; ///< Body reading done?
unsigned int sofar; ///< How many bytes are read sofar?
void setLen();
bool checkBufferSize();
//loader helper functions
bool MemReadUntil(char * buffer, unsigned int count, unsigned int & sofar, char * D, unsigned int S, unsigned int & P);
bool FileReadUntil(char * buffer, unsigned int count, unsigned int & sofar, FILE * f);