Vanilla.PDF  2.2.0
Cross-platform toolkit for creating and modifying PDF documents
c_byte_range.h
Go to the documentation of this file.
1#ifndef _C_BYTE_RANGE_H
2#define _C_BYTE_RANGE_H
3
7
8#ifdef __cplusplus
9extern "C"
10{
11#endif
12
48 VANILLAPDF_API error_type CALLING_CONVENTION ByteRangeCollection_Create(ByteRangeCollectionHandle** result);
49
55 VANILLAPDF_API error_type CALLING_CONVENTION ByteRangeCollection_Append(ByteRangeCollectionHandle* handle, ByteRangeHandle* byte_range);
56
63 VANILLAPDF_API error_type CALLING_CONVENTION ByteRangeCollection_Insert(ByteRangeCollectionHandle* handle, size_type at, ByteRangeHandle* byte_range);
64
70 VANILLAPDF_API error_type CALLING_CONVENTION ByteRangeCollection_Remove(ByteRangeCollectionHandle* handle, size_type at);
71
76 VANILLAPDF_API error_type CALLING_CONVENTION ByteRangeCollection_Clear(ByteRangeCollectionHandle* handle);
77
81 VANILLAPDF_API error_type CALLING_CONVENTION ByteRangeCollection_GetSize(ByteRangeCollectionHandle* handle, size_type* result);
82
87 VANILLAPDF_API error_type CALLING_CONVENTION ByteRangeCollection_GetValue(ByteRangeCollectionHandle* handle, size_type at, ByteRangeHandle** result);
88
93 VANILLAPDF_API error_type CALLING_CONVENTION ByteRangeCollection_Release(ByteRangeCollectionHandle* handle);
94
106 VANILLAPDF_API error_type CALLING_CONVENTION ByteRange_Create(ByteRangeHandle** result);
107
114 VANILLAPDF_API error_type CALLING_CONVENTION ByteRange_CreateFromData(IntegerObjectHandle* offset, IntegerObjectHandle* length, ByteRangeHandle** result);
115
119 VANILLAPDF_API error_type CALLING_CONVENTION ByteRange_GetOffset(ByteRangeHandle* handle, IntegerObjectHandle** result);
120
124 VANILLAPDF_API error_type CALLING_CONVENTION ByteRange_GetLength(ByteRangeHandle* handle, IntegerObjectHandle** result);
125
131 VANILLAPDF_API error_type CALLING_CONVENTION ByteRange_SetOffset(ByteRangeHandle* handle, IntegerObjectHandle* offset);
132
138 VANILLAPDF_API error_type CALLING_CONVENTION ByteRange_SetLength(ByteRangeHandle* handle, IntegerObjectHandle* length);
139
144 VANILLAPDF_API error_type CALLING_CONVENTION ByteRange_Release(ByteRangeHandle* handle);
145
148#ifdef __cplusplus
149};
150#endif
151
152#endif /* _C_BYTE_RANGE_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 a collection of ByteRangeHandle.
error_type CALLING_CONVENTION ByteRangeCollection_Append(ByteRangeCollectionHandle *handle, ByteRangeHandle *byte_range)
Append a ByteRange to the end of the collection.
error_type CALLING_CONVENTION ByteRangeCollection_Clear(ByteRangeCollectionHandle *handle)
Remove all ByteRanges from the collection.
error_type CALLING_CONVENTION ByteRangeCollection_Create(ByteRangeCollectionHandle **result)
Create an empty ByteRangeCollection.
error_type CALLING_CONVENTION ByteRangeCollection_Release(ByteRangeCollectionHandle *handle)
Decrement the internal reference counter.
error_type CALLING_CONVENTION ByteRangeCollection_GetSize(ByteRangeCollectionHandle *handle, size_type *result)
Get size of byte range collection.
error_type CALLING_CONVENTION ByteRangeCollection_Insert(ByteRangeCollectionHandle *handle, size_type at, ByteRangeHandle *byte_range)
Insert a ByteRange at a specific position in the collection.
error_type CALLING_CONVENTION ByteRangeCollection_Remove(ByteRangeCollectionHandle *handle, size_type at)
Remove a ByteRange at a specific position.
error_type CALLING_CONVENTION ByteRangeCollection_GetValue(ByteRangeCollectionHandle *handle, size_type at, ByteRangeHandle **result)
Get single byte range from array at specific position.
Represents starting byte offset and length.
error_type CALLING_CONVENTION ByteRange_GetLength(ByteRangeHandle *handle, IntegerObjectHandle **result)
Get length of byte range.
error_type CALLING_CONVENTION ByteRange_GetOffset(ByteRangeHandle *handle, IntegerObjectHandle **result)
Get starting offset of byte range.
error_type CALLING_CONVENTION ByteRange_SetLength(ByteRangeHandle *handle, IntegerObjectHandle *length)
Set length of byte range.
error_type CALLING_CONVENTION ByteRange_Create(ByteRangeHandle **result)
Create an empty ByteRange.
error_type CALLING_CONVENTION ByteRange_CreateFromData(IntegerObjectHandle *offset, IntegerObjectHandle *length, ByteRangeHandle **result)
Create a ByteRange with offset and length values.
error_type CALLING_CONVENTION ByteRange_SetOffset(ByteRangeHandle *handle, IntegerObjectHandle *offset)
Set starting offset of byte range.
error_type CALLING_CONVENTION ByteRange_Release(ByteRangeHandle *handle)
Decrement the internal reference counter.
Integer objects represent mathematical integers.
uint32_t error_type
This is return value type of all API functions.
Definition c_types.h:25
uint32_t size_type
Size type defined in standard library.
Definition c_types.h:62