InStream/OutStream

This commit is contained in:
2026-09-07 21:22:01 +08:00
parent c7b6c90ec9
commit 4f5f022be5
20 changed files with 1145 additions and 0 deletions
+25
View File
@@ -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*/