![]() |
Oyranos Color Management System API - Version 0.9.6 |
A data blob object. More...
#include <oyBlob_s.h>


Public Member Functions | |
| OYAPI oyBlob_s *OYEXPORT | oyBlob_New (oyObject_s object) |
| allocate a new Blob object More... | |
| oyBlob_Copy | |
| Copy or Reference a Blob object. More... | |
| OYAPI int OYEXPORT | oyBlob_Release (oyBlob_s **blob) |
| release and possibly deallocate a oyBlob_s object More... | |
| int | oyBlob_SetFromData (oyBlob_s *blob, oyPointer ptr, size_t size, const char *type) |
| set value from a data blob More... | |
| int | oyBlob_SetFromStatic (oyBlob_s *blob, const oyPointer ptr, size_t size, const char *type) |
| set value from a data blob More... | |
| oyPointer | oyBlob_GetPointer (oyBlob_s *blob) |
| get value from a data blob More... | |
| size_t | oyBlob_GetSize (oyBlob_s *blob) |
| get size from a data blob More... | |
| const char * | oyBlob_GetType (oyBlob_s *blob) |
| get type from a data blob More... | |
Public Member Functions inherited from oyStruct_s | |
| const char * | oyStruct_GetTextFromModule (oyStruct_s *obj, oyNAME_e name_type, uint32_t flags) |
| get object infos from a module More... | |
| const char * | oyStruct_GetText (oyStruct_s *obj, oyNAME_e name_type, uint32_t flags) |
| Get a text dump. More... | |
| oyStruct_RegisterStaticMessageFunc | |
| register a function for verbosity More... | |
| oyStruct_GetInfo | |
| get a additional string from a object More... | |
| const char * | oyStructTypeToText (oyOBJECT_e type) |
| Objects type to small string. More... | |
Data Fields | |
| const oyOBJECT_e | type_ |
| Type of object. More... | |
| oyStruct_Copy_f | copy |
| Copy function. More... | |
| oyStruct_Release_f | release |
| Release function. More... | |
| oyObject_s | oy_ |
| Oyranos internal object. More... | |
Data Fields inherited from oyStruct_s | |
| const oyOBJECT_e | type_ |
| Type of object. More... | |
| oyStruct_Copy_f | copy |
| Copy function. More... | |
| oyStruct_Release_f | release |
| Release function. More... | |
| oyObject_s | oy_ |
| Oyranos internal object. More... | |
A data blob object.
| oyBlob_Copy |
Copy or Reference a Blob object.
The function is for copying and for referencing. The reference is the most often used way, which saves resourcs and time.
| [in] | blob | Blob struct object |
| object | NULL - means reference, the optional object triggers a real copy |
| oyPointer oyBlob_GetPointer | ( | oyBlob_s * | blob | ) |
get value from a data blob
Function oyBlob_GetPointer
| [in] | blob | the data blob |
References oyOBJECT_BLOB_S.
Referenced by oyFilterNode_s::oyFilterNode_ToBlob(), and oyValue_u::oyValueEqual().
| size_t oyBlob_GetSize | ( | oyBlob_s * | blob | ) |
get size from a data blob
Function oyBlob_GetSize
| [in] | blob | the data blob |
References oyOBJECT_BLOB_S.
Referenced by oyFilterNode_s::oyFilterNode_ToBlob().
| const char * oyBlob_GetType | ( | oyBlob_s * | blob | ) |
get type from a data blob
Function oyBlob_GetType
| [in] | blob | the data blob |
References oyOBJECT_BLOB_S.
| OYAPI oyBlob_s *OYEXPORT oyBlob_New | ( | oyObject_s | object | ) |
allocate a new Blob object
Function oyBlob_New
References oyOBJECT_OBJECT_S.
Referenced by oyFilterNode_s::oyFilterNode_ToBlob().
| OYAPI int OYEXPORT oyBlob_Release | ( | oyBlob_s ** | blob | ) |
release and possibly deallocate a oyBlob_s object
Function oyBlob_Release
| [in,out] | blob | Blob struct object |
References oyOBJECT_BLOB_S.
Referenced by oyFilterNode_s::oyFilterNode_ToBlob().
| int oyBlob_SetFromData | ( | oyBlob_s * | blob, |
| oyPointer | ptr, | ||
| size_t | size, | ||
| const char * | type | ||
| ) |
set value from a data blob
Function oyBlob_SetFromData
| [in] | blob | the data blob |
| [in] | ptr | copy the data into the blob object |
| [in] | size | data size; 0 means the pointer is not owned by the object. |
| [in] | type | data type; assuming 8 byte with typical 4 byte content |
References oy_, and oyOBJECT_BLOB_S.
| int oyBlob_SetFromStatic | ( | oyBlob_s * | blob, |
| const oyPointer | ptr, | ||
| size_t | size, | ||
| const char * | type | ||
| ) |
set value from a data blob
Function oyBlob_SetFromStatic
| [in] | blob | the data blob |
| [in] | ptr | move the data into the blob object |
| [in] | size | data size |
| [in] | type | data type; assuming 8 byte with typical 4 byte content |
References oy_, and oyOBJECT_BLOB_S.
| oyStruct_Copy_f oyBlob_s::copy |
Copy function.
| oyObject_s oyBlob_s::oy_ |
Oyranos internal object.
Features name and hash. Do not change during object life time.
Referenced by oyBlob_SetFromData(), and oyBlob_SetFromStatic().
| oyStruct_Release_f oyBlob_s::release |
Release function.
| const oyOBJECT_e oyBlob_s::type_ |
Type of object.
The struct type tells Oyranos how to interprete hidden fields.