DG Kernel (ActiveX) Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
What is new
Upgrading Native Apps
Licensing
Collapse ModelsModels
Collapse DG Kernel ControlsDG Kernel Controls
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Collapse General GeometryGeneral Geometry
Collapse ModelModel
Collapse ViewView
Collapse General ComputingGeneral Computing
Collapse ViewsViews
Collapse Samples and TutorialsSamples and Tutorials
Collapse GraphicsGraphics
Collapse Math ObjectsMath Objects
Collapse DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation Links Go to DGKC docs 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.

A standalone blob can be created via IObjectGenerator_DG.Create("IBlob") > 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.