Method GetBytes
GetBytes(int, long, byte[], int, int)
Reads a stream of bytes from the specified column offset into the buffer as an array, starting at the given buffer offset.
public long GetBytes(int i, long fieldOffset, byte[] buffer, int bufferoffset, int length)
Parameters
i
intThe zero-based column ordinal.
fieldOffset
longThe index within the field from which to start the read operation.
buffer
byte[]The buffer into which to read the stream of bytes.
bufferoffset
intThe index for
buffer
to start the read operation.length
intThe number of bytes to read.
Returns
- long
The actual number of bytes read.
Exceptions
- IndexOutOfRangeException
The index passed was outside the range of 0 through FieldCount.