Implementation of a IsoStream to read from a memory buffer.

This commit is contained in:
Vreixo Formoso
2008-01-11 16:42:18 +01:00
parent cd8943105c
commit 807c43b20e
3 changed files with 166 additions and 0 deletions

View File

@ -162,4 +162,13 @@ char *iso_stream_get_name(IsoStream *stream)
*/
int iso_file_source_stream_new(IsoFileSource *src, IsoStream **stream);
/**
* Create a stream for reading from a arbitrary memory buffer.
* When the Stream refcount reach 0, the buffer is free(3).
*
* @return
* 1 sucess, < 0 error
*/
int iso_memory_stream_new(unsigned char *buf, size_t size, IsoStream **stream);
#endif /*STREAM_H_*/