Vanilla.PDF  2.0.0
Cross-platform toolkit for creating and modifying PDF documents
c_stream_object.h
Go to the documentation of this file.
1#ifndef _C_STREAM_OBJECT_H
2#define _C_STREAM_OBJECT_H
3
7
8#ifdef __cplusplus
9extern "C"
10{
11#endif
12
33 VANILLAPDF_API error_type CALLING_CONVENTION StreamObject_Create(StreamObjectHandle** result);
34
38 VANILLAPDF_API error_type CALLING_CONVENTION StreamObject_GetHeader(StreamObjectHandle* handle, DictionaryObjectHandle** result);
39
43 VANILLAPDF_API error_type CALLING_CONVENTION StreamObject_SetHeader(StreamObjectHandle* handle, DictionaryObjectHandle* value);
44
50 VANILLAPDF_API error_type CALLING_CONVENTION StreamObject_GetBodyRaw(StreamObjectHandle* handle, BufferHandle** result);
51
55 VANILLAPDF_API error_type CALLING_CONVENTION StreamObject_GetBody(StreamObjectHandle* handle, BufferHandle** result);
56
62 VANILLAPDF_API error_type CALLING_CONVENTION StreamObject_SetBody(StreamObjectHandle* handle, BufferHandle* value);
63
67 VANILLAPDF_API error_type CALLING_CONVENTION StreamObject_ToObject(StreamObjectHandle* handle, ObjectHandle** result);
68
72 VANILLAPDF_API error_type CALLING_CONVENTION StreamObject_FromObject(ObjectHandle* handle, StreamObjectHandle** result);
73
77 VANILLAPDF_API error_type CALLING_CONVENTION StreamObject_Release(StreamObjectHandle* handle);
78
81#ifdef __cplusplus
82};
83#endif
84
85#endif /* _C_STREAM_OBJECT_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.
A dictionary object is an associative table containing pairs of objects.
Base class for syntactic tokens.
Stream object represents compressed data inside document.
error_type CALLING_CONVENTION StreamObject_GetBodyRaw(StreamObjectHandle *handle, BufferHandle **result)
Get uncompressed stream body.
error_type CALLING_CONVENTION StreamObject_ToObject(StreamObjectHandle *handle, ObjectHandle **result)
Reinterpret current object as ObjectHandle.
error_type CALLING_CONVENTION StreamObject_GetBody(StreamObjectHandle *handle, BufferHandle **result)
Get decompressed stream content.
error_type CALLING_CONVENTION StreamObject_SetHeader(StreamObjectHandle *handle, DictionaryObjectHandle *value)
Set new streams header dictionary.
error_type CALLING_CONVENTION StreamObject_GetHeader(StreamObjectHandle *handle, DictionaryObjectHandle **result)
Return streams header dictionary.
error_type CALLING_CONVENTION StreamObject_FromObject(ObjectHandle *handle, StreamObjectHandle **result)
Convert ObjectHandle to StreamObjectHandle.
error_type CALLING_CONVENTION StreamObject_Create(StreamObjectHandle **result)
Creates a new StreamObject instance.
error_type CALLING_CONVENTION StreamObject_SetBody(StreamObjectHandle *handle, BufferHandle *value)
Set new stream content.
error_type CALLING_CONVENTION StreamObject_Release(StreamObjectHandle *handle)
Decrement the internal reference counter.
uint32_t error_type
This is return value type of all API functions.
Definition c_types.h:25