DG Kernel Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
Overview of the software
What is new
Licensing
Expand ModelsModels
Expand DG Kernel ComponentsDG Kernel Components
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Expand General GeometryGeneral Geometry
Expand ModelModel
Expand ViewView
Collapse General ComputingGeneral Computing
Expand Samples and TutorialsSamples and Tutorials
Expand GraphicsGraphics
Expand Math ObjectsMath Objects
Expand DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation LinksHome Page > API Reference > General Computing > IBlob Search Documentation


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.

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.