MySQL Connector/Net
MySqlDataReaderGetBytes Method |
Reads a stream of bytes from the specified column offset into the buffer an array starting at the given buffer offset.
Namespace: MySql.Data.MySqlClient
Assembly: MySql.Data (in MySql.Data.dll) Version: 6.9.9

public override long GetBytes( int i, long fieldOffset, byte[] buffer, int bufferoffset, int length )
Public Overrides Function GetBytes ( i As Integer, fieldOffset As Long, buffer As Byte(), bufferoffset As Integer, length As Integer ) As Long
public: virtual long long GetBytes( int i, long long fieldOffset, array<unsigned char>^ buffer, int bufferoffset, int length ) override
abstract GetBytes : i : int * fieldOffset : int64 * buffer : byte[] * bufferoffset : int * length : int -> int64 override GetBytes : i : int * fieldOffset : int64 * buffer : byte[] * bufferoffset : int * length : int -> int64
Parameters
- i
- Type: SystemInt32
The zero-based column ordinal. - fieldOffset
- Type: SystemInt64
The index within the field from which to begin the read operation. - buffer
- Type: SystemByte
The buffer into which to read the stream of bytes. - bufferoffset
- Type: SystemInt32
The index for buffer to begin the read operation. - length
- Type: SystemInt32
The maximum length to copy into the buffer.
Return Value
Type: Int64The actual number of bytes read.
Implements
IDataRecordGetBytes(Int32, Int64, Byte, Int32, Int32)IDataRecordGetBytes(Int32, Int64, Byte, Int32, Int32)
