6#include <bond/core/config.h>
18class StdioOutputStream
21 StdioOutputStream(FILE* file)
26 void Write(
const T& value)
28 Write(&value,
sizeof(value));
31 void Write(
const blob& buffer)
33 Write(buffer.data(), buffer.length());
36 void Write(
const void* value, uint32_t size)
38 fwrite(value, size, 1, _file);
48inline OutputBuffer CreateOutputBuffer(
const StdioOutputStream& )
namespace bond
Definition: apply.h:17
OutputMemoryStream OutputBuffer
Type alias for memory backed output stream using std::allocator.
Definition: output_buffer.h:386