RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IDataBlock Interface

IDataBlock is the interface used by data block interpreters to access memory buffers.

Pascal
IDataBlock = interface(IUnknown);
C++
__interface IDataBlock : public IUnknown;

SConnect

Data block interpreters uses IDataBlock when marshaling COM interface calls. Streamed connection components send data obtained from IDataBlock to an application server once the data block interpreter has filled its memory by marshaling interface calls. They also read data from the application server into IDataBlock and pass it to a data block interpreter for marshaling. 

IDataBlock is an interface, and as such can't be directly instantiated. Instead, objects that implement the IDataBlock properties and methods include IDataBlock in their class definition (Delphi) or be derived from IDataBlock (C++). Such objects can be cast to an IDataBlock so that they can be used by data block interpreters.

Note: C++ method declarations that use IDataBlock use the _di_IDataBlock type instead. This is a DelphiInterface wrapper around the IDataBlock interface:

typedef System::DelphiInterfaceDelphiInterface_object< IDataBlock >  _di_IDataBlock;

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!