Vanilla.PDF  1.4.1
Cross-platform toolkit for creating and modifying PDF documents
c_buffer_array.h
Go to the documentation of this file.
1 #ifndef _C_BUFFER_ARRAY_H
2 #define _C_BUFFER_ARRAY_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 BufferArray_Create(BufferArrayHandle** result);
34 
38  VANILLAPDF_API error_type CALLING_CONVENTION BufferArray_GetSize(BufferArrayHandle* handle, size_type* result);
39 
43  VANILLAPDF_API error_type CALLING_CONVENTION BufferArray_At(BufferArrayHandle* handle, size_type at, BufferHandle** result);
44 
48  VANILLAPDF_API error_type CALLING_CONVENTION BufferArray_Append(BufferArrayHandle* handle, BufferHandle* value);
49 
53  VANILLAPDF_API error_type CALLING_CONVENTION BufferArray_Insert(BufferArrayHandle* handle, size_type at, BufferHandle* value);
54 
58  VANILLAPDF_API error_type CALLING_CONVENTION BufferArray_Remove(BufferArrayHandle* handle, size_type at);
59 
63  VANILLAPDF_API error_type CALLING_CONVENTION BufferArray_ToUnknown(BufferArrayHandle* handle, IUnknownHandle** result);
64 
68  VANILLAPDF_API error_type CALLING_CONVENTION BufferArray_FromUnknown(IUnknownHandle* handle, BufferArrayHandle** result);
69 
73  VANILLAPDF_API error_type CALLING_CONVENTION BufferArray_Release(BufferArrayHandle* handle);
74 
77 #ifdef __cplusplus
78 };
79 #endif
80 
81 #endif /* _C_BUFFER_ARRAY_H */
error_type BufferArray_Insert(BufferArrayHandle *handle, size_type at, BufferHandle *value)
Insert new element at location at.
error_type BufferArray_At(BufferArrayHandle *handle, size_type at, BufferHandle **result)
Get element at location at.
error_type BufferArray_ToUnknown(BufferArrayHandle *handle, IUnknownHandle **result)
Reinterpret current object as IUnknownHandle.
error_type BufferArray_Create(BufferArrayHandle **result)
Creates a new buffer array instance.
error_type BufferArray_FromUnknown(IUnknownHandle *handle, BufferArrayHandle **result)
Convert IUnknownHandle to BufferArrayHandle.
This file contains all type forward declarations returned by the library API.
error_type BufferArray_GetSize(BufferArrayHandle *handle, size_type *result)
Return size of an array.
uint32_t size_type
Size type defined in standard library.
Definition: c_types.h:62
uint32_t error_type
This is return value type of all API functions.
Definition: c_types.h:25
Represents a list of BufferHandle.
This file contains macro declarations for importing and exporting symbols from library boundaries...
error_type BufferArray_Remove(BufferArrayHandle *handle, size_type at)
Remove element from location at.
error_type BufferArray_Release(BufferArrayHandle *handle)
Decrement the internal reference counter.
This file contains types and constants used as parameters or return values.
Represents memory stored data.
Base class for reference counting.
error_type BufferArray_Append(BufferArrayHandle *handle, BufferHandle *value)
Insert new element at the end of the array.