openDAQ
Open data acquisition platform
IBinaryData Struct Referenceabstract

Represents binary large object (BLOB). More...

+ Inheritance diagram for IBinaryData:
+ Collaboration diagram for IBinaryData:

Detailed Description

Represents binary large object (BLOB).

Binary data is just a continuously allocated memory of a specific size. A client can get a pointer to internal buffer and size it.

Public Member Functions

virtual ErrCode INTERFACE_FUNC getAddress (void **data)=0
 Gets the address of the buffer. More...
 
virtual ErrCode INTERFACE_FUNC getSize (SizeT *size)=0
 Gets the size of the buffer. More...
 
- Public Member Functions inherited from IBaseObject
virtual ErrCode INTERFACE_FUNC borrowInterface (const IntfID &intfID, void **obj) const =0
 Returns another interface which is supported by the object without incrementing the reference count. More...
 
virtual ErrCode INTERFACE_FUNC dispose ()=0
 Disposes all references held by the object. More...
 
virtual ErrCode INTERFACE_FUNC getHashCode (SizeT *hashCode)=0
 Returns hash code of the object. More...
 
virtual ErrCode INTERFACE_FUNC equals (IBaseObject *other, Bool *equal) const =0
 Compares object to another object for equality. More...
 
virtual ErrCode INTERFACE_FUNC toString (CharPtr *str)=0
 Returns a string representation of the object. More...
 
- Public Member Functions inherited from IUnknown
virtual ErrCode INTERFACE_FUNC queryInterface (const IntfID &intfID, void **obj)=0
 Returns another interface which is supported by the object and increments the reference count. More...
 
virtual int INTERFACE_FUNC addRef ()=0
 Increments the reference count for an interface on an object. More...
 
virtual int INTERFACE_FUNC releaseRef ()=0
 Decrements the reference count for an interface on an object. More...
 

Member Function Documentation

◆ getAddress()

virtual ErrCode INTERFACE_FUNC getAddress ( void **  data)
pure virtual

Gets the address of the buffer.

Parameters
[out]dataThe buffer's starting address.

◆ getSize()

virtual ErrCode INTERFACE_FUNC getSize ( SizeT *  size)
pure virtual

Gets the size of the buffer.

Parameters
[out]sizeThe buffer's size.