Vanilla.PDF  1.3.0
Cross-platform toolkit for creating and modifying PDF documents
c_output_stream_interface.h
Go to the documentation of this file.
1 #ifndef _C_OUTPUT_STREAM_INTERFACE_H
2 #define _C_OUTPUT_STREAM_INTERFACE_H
3 
4 #include "vanillapdf/c_export.h"
5 #include "vanillapdf/c_handles.h"
6 #include "vanillapdf/c_values.h"
7 
8 #ifdef __cplusplus
9 extern "C"
10 {
11 #endif
12 
33  VANILLAPDF_API error_type CALLING_CONVENTION IOutputStream_CreateFromFile(string_type filename, IOutputStreamHandle** result);
34 
38  VANILLAPDF_API error_type CALLING_CONVENTION IOutputStream_GetOutputPosition(IOutputStreamHandle* handle, offset_type* result);
39 
43  VANILLAPDF_API error_type CALLING_CONVENTION IOutputStream_SetOutputPosition(IOutputStreamHandle* handle, offset_type value);
44 
48  VANILLAPDF_API error_type CALLING_CONVENTION IOutputStream_WriteString(IOutputStreamHandle* handle, string_type data);
49 
53  VANILLAPDF_API error_type CALLING_CONVENTION IOutputStream_WriteBuffer(IOutputStreamHandle* handle, BufferHandle* data);
54 
58  VANILLAPDF_API error_type CALLING_CONVENTION IOutputStream_Flush(IOutputStreamHandle* handle);
59 
64  VANILLAPDF_API error_type CALLING_CONVENTION IOutputStream_Release(IOutputStreamHandle* handle);
65 
68 #ifdef __cplusplus
69 };
70 #endif
71 
72 #endif /* _C_OUTPUT_STREAM_INTERFACE_H */
error_type IOutputStream_SetOutputPosition(IOutputStreamHandle *handle, offset_type value)
Sets current offset in the output stream.
error_type IOutputStream_Flush(IOutputStreamHandle *handle)
Flushes all pending data from the stream to it's destination.
error_type IOutputStream_Release(IOutputStreamHandle *handle)
Decrement the internal reference counter.
This file contains all type forward declarations returned by the library API.
error_type IOutputStream_WriteBuffer(IOutputStreamHandle *handle, BufferHandle *data)
Appends buffer string to current output stream instance.
const char * string_type
C-Style string.
Definition: c_types.h:82
uint32_t error_type
This is return value type of all API functions.
Definition: c_types.h:25
This file contains macro declarations for importing and exporting symbols from library boundaries...
error_type IOutputStream_GetOutputPosition(IOutputStreamHandle *handle, offset_type *result)
Gets current offset in the output stream.
Output stream can write sequences of characters and represent other kinds of data.
error_type IOutputStream_CreateFromFile(string_type filename, IOutputStreamHandle **result)
Creates a new file at filename location and opens it for writing.
This file contains types and constants used as parameters or return values.
int64_t offset_type
Offset type compatible with standard IO.
Definition: c_types.h:56
Represents memory stored data.
error_type IOutputStream_WriteString(IOutputStreamHandle *handle, string_type data)
Appends null terminated string to current output stream instance.