Vanilla.PDF  1.5.2
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 
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 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 */
error_type StreamObject_Create(StreamObjectHandle **result)
Creates a new StreamObject instance.
error_type StreamObject_FromObject(ObjectHandle *handle, StreamObjectHandle **result)
Convert ObjectHandle to StreamObjectHandle.
error_type StreamObject_SetHeader(StreamObjectHandle *handle, DictionaryObjectHandle *value)
Set new streams header dictionary.
error_type StreamObject_GetBody(StreamObjectHandle *handle, BufferHandle **result)
Get decompressed stream content.
error_type StreamObject_GetBodyRaw(StreamObjectHandle *handle, BufferHandle **result)
Get uncompressed stream body.
This file contains all type forward declarations returned by the library API.
error_type StreamObject_ToObject(StreamObjectHandle *handle, ObjectHandle **result)
Reinterpret current object as ObjectHandle.
error_type StreamObject_SetBody(StreamObjectHandle *handle, BufferHandle *value)
Set new stream content.
A dictionary object is an associative table containing pairs of objects.
error_type StreamObject_GetHeader(StreamObjectHandle *handle, DictionaryObjectHandle **result)
Return streams header dictionary.
Base class for syntactic tokens.
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 StreamObject_Release(StreamObjectHandle *handle)
Decrement the internal reference counter.
This file contains types and constants used as parameters or return values.
Stream object represents compressed data inside document.
Represents memory stored data.