Firebird ADO.NET Provider SDK Documentation - v1.7

FbDataReader.GetChars Method 

Reads a stream of characters from the specified column offset into the buffer as an array, starting at the given buffer offset.

[Visual Basic]
NotOverridable Public Function GetChars( _
   ByVal i As Integer, _
   ByVal dataIndex As Long, _
   ByVal buffer As Char(), _
   ByVal bufferIndex As Integer, _
   ByVal length As Integer _
) As Long _
    Implements IDataRecord.GetChars
[C#]
public long GetChars(
   int i,
   long dataIndex,
   char[] buffer,
   int bufferIndex,
   int length
);

Parameters

i
The zero-based column ordinal.
dataIndex
The index within the field where the read operation is to begin.
buffer
The buffer into which to read the stream of bytes.
bufferIndex
The index where buffer is to begin the write operation.
length
The number of bytes to read.

Return Value

The actual number of characters read.

Implements

IDataRecord.GetChars

Remarks

If you pass a buffer that is a null reference, GetChars returns the length of the field in characters.

No conversions are performed, therefore the data retrieved must already be a character array.

See Also

FbDataReader Class | FirebirdSql.Data.Firebird Namespace | GetBytes