Vanilla.PDF  2.0.0
Cross-platform toolkit for creating and modifying PDF documents
c_output_stream.h
Go to the documentation of this file.
1#ifndef _C_OUTPUT_STREAM_INTERFACE_H
2#define _C_OUTPUT_STREAM_INTERFACE_H
3
7
8#ifdef __cplusplus
9extern "C"
10{
11#endif
12
33 VANILLAPDF_API error_type CALLING_CONVENTION OutputStream_CreateFromFile(string_type filename, OutputStreamHandle** result);
34
38 VANILLAPDF_API error_type CALLING_CONVENTION OutputStream_GetOutputPosition(OutputStreamHandle* handle, offset_type* result);
39
43 VANILLAPDF_API error_type CALLING_CONVENTION OutputStream_SetOutputPosition(OutputStreamHandle* handle, offset_type value);
44
48 VANILLAPDF_API error_type CALLING_CONVENTION OutputStream_WriteString(OutputStreamHandle* handle, string_type data);
49
53 VANILLAPDF_API error_type CALLING_CONVENTION OutputStream_WriteBuffer(OutputStreamHandle* handle, BufferHandle* data);
54
58 VANILLAPDF_API error_type CALLING_CONVENTION OutputStream_Flush(OutputStreamHandle* handle);
59
63 VANILLAPDF_API error_type CALLING_CONVENTION OutputStream_ToUnknown(OutputStreamHandle* handle, IUnknownHandle** result);
64
68 VANILLAPDF_API error_type CALLING_CONVENTION OutputStream_FromUnknown(IUnknownHandle* handle, OutputStreamHandle** result);
69
74 VANILLAPDF_API error_type CALLING_CONVENTION OutputStream_Release(OutputStreamHandle* handle);
75
78#ifdef __cplusplus
79};
80#endif
81
82#endif /* _C_OUTPUT_STREAM_INTERFACE_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.
Output stream can write sequences of characters and represent other kinds of data.
error_type CALLING_CONVENTION OutputStream_ToUnknown(OutputStreamHandle *handle, IUnknownHandle **result)
Reinterpret current object as IUnknownHandle.
error_type CALLING_CONVENTION OutputStream_Release(OutputStreamHandle *handle)
Decrement the internal reference counter.
error_type CALLING_CONVENTION OutputStream_SetOutputPosition(OutputStreamHandle *handle, offset_type value)
Sets current offset in the output stream.
error_type CALLING_CONVENTION OutputStream_Flush(OutputStreamHandle *handle)
Flushes all pending data from the stream to it's destination.
error_type CALLING_CONVENTION OutputStream_GetOutputPosition(OutputStreamHandle *handle, offset_type *result)
Gets current offset in the output stream.
error_type CALLING_CONVENTION OutputStream_WriteString(OutputStreamHandle *handle, string_type data)
Appends null terminated string data to current output stream instance.
error_type CALLING_CONVENTION OutputStream_FromUnknown(IUnknownHandle *handle, OutputStreamHandle **result)
Convert IUnknownHandle to OutputStreamHandle.
error_type CALLING_CONVENTION OutputStream_WriteBuffer(OutputStreamHandle *handle, BufferHandle *data)
Appends buffer data to current output stream instance.
error_type CALLING_CONVENTION OutputStream_CreateFromFile(string_type filename, OutputStreamHandle **result)
Creates a new file at filename location and opens it for writing.
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