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_BUFFERINPUTSTREAM_H
#define INCLUDED_C_BUFFERINPUTSTREAM_H
#ifndef INCLUDED_C_INSTREAM_H
#include <c_InStream.h>
#endif /*INCLUDED_C_INSTREAM_H*/
#ifndef INCLUDED_C_ALLOCATOR_H
#include <c_Allocator.h>
#endif /*INCLUDED_C_ALLOCATOR_H*/
/* ------------------------------------------------------------------------------------------------------------------ */
/* */
/**
* @brief Instantiates an in-memory buffer Stream reader.
* @note This implementation performs a shallow copy of the reference pointer, or handles data depending on arguments.
*/
c_err_t c_BufferInputStream_Create(c_InStream_t** out_stream, const void* buffer_ptr, c_size_t buffer_len, c_Allocator_t* allocator);
#endif /*INCLUDED_C_BUFFERINPUTSTREAM_H*/