InStream/OutStream
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#ifndef INCLUDED_C_BUFFEROUTPUTSTREAM_H
|
||||
#define INCLUDED_C_BUFFEROUTPUTSTREAM_H
|
||||
|
||||
#ifndef INCLUDED_C_OUTSTREAM_H
|
||||
#include <c_OutStream.h>
|
||||
#endif /*INCLUDED_C_OUTSTREAM_H*/
|
||||
|
||||
#ifndef INCLUDED_C_ALLOCATOR_H
|
||||
#include <c_Allocator.h>
|
||||
#endif /*INCLUDED_C_ALLOCATOR_H*/
|
||||
|
||||
|
||||
|
||||
/* ------------------------------------------------------------------------------------------------------------------ */
|
||||
/* */
|
||||
|
||||
/**
|
||||
* @brief Instantiates an in-memory dynamic rolling buffer Stream writer.
|
||||
*/
|
||||
c_err_t c_BufferOutputStream_Create(c_OutStream_t** out_stream, c_size_t initial_capacity, c_Allocator_t* allocator);
|
||||
|
||||
c_err_t c_BufferOutputStream_GetBuffer(c_OutStream_t* self, const void** out_ptr, c_size_t* out_len);
|
||||
|
||||
|
||||
#endif /*INCLUDED_C_BUFFEROUTPUTSTREAM_H*/
|
||||
Reference in New Issue
Block a user