Vanilla.PDF  1.6.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
7
8#ifdef __cplusplus
9extern "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, InputStreamHandle** result);
49
53 VANILLAPDF_API error_type CALLING_CONVENTION Buffer_Equals(const BufferHandle* handle, const BufferHandle* other, boolean_type* result);
54
58 VANILLAPDF_API error_type CALLING_CONVENTION Buffer_Hash(const BufferHandle* handle, size_type* result);
59
63 VANILLAPDF_API error_type CALLING_CONVENTION Buffer_ToUnknown(BufferHandle* handle, IUnknownHandle** result);
64
68 VANILLAPDF_API error_type CALLING_CONVENTION Buffer_FromUnknown(IUnknownHandle* handle, BufferHandle** result);
69
74 VANILLAPDF_API error_type CALLING_CONVENTION Buffer_Release(BufferHandle* handle);
75
78#ifdef __cplusplus
79};
80#endif
81
82#endif /* _C_BUFFER_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.
error_type CALLING_CONVENTION Buffer_Release(BufferHandle *handle)
Decrement the internal reference counter.
error_type CALLING_CONVENTION Buffer_Hash(const BufferHandle *handle, size_type *result)
Get object hash code.
error_type CALLING_CONVENTION Buffer_SetData(BufferHandle *handle, string_type data, size_type size)
Set new data content.
error_type CALLING_CONVENTION Buffer_Equals(const BufferHandle *handle, const BufferHandle *other, boolean_type *result)
Compares two buffers by their value.
error_type CALLING_CONVENTION Buffer_Create(BufferHandle **result)
Creates a new buffer instance.
error_type CALLING_CONVENTION Buffer_ToInputStream(const BufferHandle *handle, InputStreamHandle **result)
Converts current buffer state to input stream.
error_type CALLING_CONVENTION Buffer_FromUnknown(IUnknownHandle *handle, BufferHandle **result)
Convert IUnknownHandle to BufferHandle.
error_type CALLING_CONVENTION Buffer_ToUnknown(BufferHandle *handle, IUnknownHandle **result)
Reinterpret current object as IUnknownHandle.
error_type CALLING_CONVENTION Buffer_GetData(const BufferHandle *handle, string_type *data, size_type *size)
Get data content from buffer.
Base class for reference counting.
Input stream can read and interpret input from sequences of characters.
uint32_t error_type
This is return value type of all API functions.
Definition: c_types.h:25
int8_t boolean_type
Boolean type supported in C.
Definition: c_types.h:31
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