IBlob Interface
- GetSize
- Load
- Save
- Copy
- CopyTo
IBlob are implemented by DG Kernel Blobs, which are buffers of memory.
A DG Kernel Blob has two properties: Size and Data, which is contiguous range of bytes of Size length.
A standalone blob can be created via IObjectGenerator_DG.Create("Blob") > IBlob query.
See also Interface List
HRESULT GetSize(int* bytes)
Parameters
bytes - [out] Size of the memory
buffer
-
- Remarks:
The methods returns size of the memory buffer
HRESULT Load(char* szFilePath)
Parameters
szFilePath - [in] full path of the
file to load
-
- Remarks:
The methods allocates the buffer and loads all content of the file into it.
HRESULT Save(char* szFilePath)
Parameters
szFilePath - [in] full path of the
file to save into
-
- Remarks:
The method saves data contained in the buffer as a binary file.
HRESULT Copy(SAFEARRAY **data)
Parameters
data - [in] array of bytes to copy.
-
- Remarks:
Allocates buffer of size of data array of bytes and copies
data into the buffer.
HRESULT CopyTo(SAFEARRAY **data)
Parameters
data - [out] returned new array of byte type which
contains a copy of the buffer.
-
- Remarks:
Creates new data array of bytes and copies the buffer
into it.
|