GetBytes Method
Definition
GetBytes(int, long, byte[], int, int)
Reads a stream of bytes from the specified column, starting at location indicated by dataOffset, into the buffer, starting at the location indicated by bufferOffset.
public long GetBytes(int i, long fieldOffset, byte[] buffer, int bufferoffset, int length)
Parameters
iintThe zero-based column ordinal.
fieldOffsetlongThe index within the row from which to begin the read operation.
bufferbyte[]The buffer into which to copy the data.
bufferoffsetintThe index with the buffer to which the data will be copied.
lengthintThe maximum number of characters to read.
Returns
- long
The actual number of bytes read.