Vanilla.PDF  1.3.0
Cross-platform toolkit for creating and modifying PDF documents
c_buffer.h
Go to the documentation of this file.
1 #ifndef _C_BUFFER_H
2 #define _C_BUFFER_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 Buffer_Create(BufferHandle** result);
34 
38  VANILLAPDF_API error_type CALLING_CONVENTION Buffer_GetData(const BufferHandle* handle, string_type* data, size_type* size);
39 
43  VANILLAPDF_API error_type CALLING_CONVENTION Buffer_SetData(BufferHandle* handle, string_type data, size_type size);
44 
48  VANILLAPDF_API error_type CALLING_CONVENTION Buffer_ToInputStream(const BufferHandle* handle, IInputStreamHandle** result);
49 
54  VANILLAPDF_API error_type CALLING_CONVENTION Buffer_Release(BufferHandle* handle);
55 
58 #ifdef __cplusplus
59 };
60 #endif
61 
62 #endif /* _C_BUFFER_H */
Input stream can read and interpret input from sequences of characters.
error_type Buffer_Release(BufferHandle *handle)
Decrement the internal reference counter.
This file contains all type forward declarations returned by the library API.
error_type Buffer_ToInputStream(const BufferHandle *handle, IInputStreamHandle **result)
Converts current buffer state to input stream.
uint32_t size_type
Size type defined in standard library.
Definition: c_types.h:62
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 Buffer_GetData(const BufferHandle *handle, string_type *data, size_type *size)
Get data content from buffer.
error_type Buffer_Create(BufferHandle **result)
Creates a new buffer instance.
error_type Buffer_SetData(BufferHandle *handle, string_type data, size_type size)
Set new data content.
This file contains types and constants used as parameters or return values.
Represents memory stored data.