1#ifndef _C_MEMORY_BUFFER_OUTPUT_STREAM_H
2#define _C_MEMORY_BUFFER_OUTPUT_STREAM_H
This file contains macro declarations for importing and exporting symbols from library boundaries.
This file contains all type forward declarations returned by the library API.
This file contains types and constants used as parameters or return values.
Represents memory stored data.
Base class for reference counting.
An output stream that writes data to an internal memory buffer.
error_type CALLING_CONVENTION MemoryBufferOutputStream_FromUnknown(IUnknownHandle *handle, MemoryBufferOutputStreamHandle **result)
Convert IUnknownHandle to OutputStreamHandle.
error_type CALLING_CONVENTION MemoryBufferOutputStream_WriteBuffer(MemoryBufferOutputStreamHandle *handle, BufferHandle *data)
Appends buffer data to current output stream instance.
error_type CALLING_CONVENTION MemoryBufferOutputStream_SetOutputPosition(MemoryBufferOutputStreamHandle *handle, offset_type value)
Sets current offset in the output stream.
error_type CALLING_CONVENTION MemoryBufferOutputStream_WriteBufferRange(MemoryBufferOutputStreamHandle *handle, BufferHandle *data, offset_type length)
Appends buffer data to current output stream instance up to length specified.
error_type CALLING_CONVENTION MemoryBufferOutputStream_Create(MemoryBufferOutputStreamHandle **result)
Creates a new file at filename location and opens it for writing.
error_type CALLING_CONVENTION MemoryBufferOutputStream_Flush(MemoryBufferOutputStreamHandle *handle)
Flushes all pending data from the stream to it's destination.
error_type CALLING_CONVENTION MemoryBufferOutputStream_ToUnknown(MemoryBufferOutputStreamHandle *handle, IUnknownHandle **result)
Reinterpret current object as IUnknownHandle.
error_type CALLING_CONVENTION MemoryBufferOutputStream_WriteString(MemoryBufferOutputStreamHandle *handle, string_type data)
Appends null terminated string data to current output stream instance.
error_type CALLING_CONVENTION MemoryBufferOutputStream_GetOutputPosition(MemoryBufferOutputStreamHandle *handle, offset_type *result)
Gets current offset in the output stream.
error_type CALLING_CONVENTION MemoryBufferOutputStream_Release(MemoryBufferOutputStreamHandle *handle)
Decrement the internal reference counter.
uint32_t error_type
This is return value type of all API functions.
Definition c_types.h:25
int64_t offset_type
Offset type compatible with standard IO.
Definition c_types.h:56
const char * string_type
C-Style string.
Definition c_types.h:82