Vanilla.PDF  1.3.0
Cross-platform toolkit for creating and modifying PDF documents
c_input_stream_interface.h
Go to the documentation of this file.
1 #ifndef _C_INPUT_STREAM_INTERFACE_H
2 #define _C_INPUT_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 IInputStream_CreateFromFile(string_type filename, IInputStreamHandle** result);
34 
40  VANILLAPDF_API error_type CALLING_CONVENTION IInputStream_CreateFromBuffer(BufferHandle* data, IInputStreamHandle** result);
41 
46  VANILLAPDF_API error_type CALLING_CONVENTION IInputStream_ToBuffer(IInputStreamHandle* handle, BufferHandle** result);
47 
51  VANILLAPDF_API error_type CALLING_CONVENTION IInputStream_GetInputPosition(IInputStreamHandle* handle, offset_type* result);
52 
56  VANILLAPDF_API error_type CALLING_CONVENTION IInputStream_SetInputPosition(IInputStreamHandle* handle, offset_type value);
57 
62  VANILLAPDF_API error_type CALLING_CONVENTION IInputStream_Release(IInputStreamHandle* handle);
63 
66 #ifdef __cplusplus
67 };
68 #endif
69 
70 #endif /* _C_INPUT_STREAM_INTERFACE_H */
error_type IInputStream_SetInputPosition(IInputStreamHandle *handle, offset_type value)
Sets current offset in the input stream.
error_type IInputStream_ToBuffer(IInputStreamHandle *handle, BufferHandle **result)
Reads all data from the input stream and returns them as a single large buffer.
error_type IInputStream_Release(IInputStreamHandle *handle)
Decrement the internal reference counter.
Input stream can read and interpret input from sequences of characters.
error_type IInputStream_CreateFromBuffer(BufferHandle *data, IInputStreamHandle **result)
Reads all data from buffer and stores them for later use.
This file contains all type forward declarations returned by the library API.
const char * string_type
C-Style string.
Definition: c_types.h:82
error_type IInputStream_GetInputPosition(IInputStreamHandle *handle, offset_type *result)
Gets current offset in the input stream.
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...
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 IInputStream_CreateFromFile(string_type filename, IInputStreamHandle **result)
Opens an existing file at filename for read.