RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAdoDbxDataReader.GetBytes Method

Gets column value into an array of bytes.

Pascal
function GetBytes(Ordinal: Integer; DataOffset: Int64; Bytes: array of byte; BufferOffset: Integer; Length: Integer): Int64; override;
C++
virtual __fastcall Int64 GetBytes(int Ordinal, Int64 DataOffset, array of byte Bytes, int BufferOffset, int Length);

GetBytes reads a column value into an array of bytes. It returns the number of bytes read. The parameters are:

Parameter 
Description 
Ordinal  
Zero based column ordinal to read from.  
DataOffset  
Offset into the data to start reading from.  
Bytes  
Byte array to read into.  
BufferOffset  
Byte offset into buffer at which to write data.  
Length  
Maximum number of bytes to read.  

 

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