Files
cKit/Foundation/c_BufferOutputStream.h
2026-09-07 21:22:01 +08:00

26 lines
742 B
C

#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*/