GetBytes Method

MySQL Connector.Net

Collapse image Expand Image Copy image CopyHover image
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.8.4.0

Syntax

C#
public override long GetBytes(
	int i,
	long fieldOffset,
	byte[] buffer,
	int bufferoffset,
	int length
)
Visual Basic
Public Overrides Function GetBytes ( _
	i As Integer, _
	fieldOffset As Long, _
	buffer As Byte(), _
	bufferoffset As Integer, _
	length As Integer _
) As Long
Visual C++
public:
virtual long long GetBytes(
	int i, 
	long long fieldOffset, 
	array<unsigned char>^ buffer, 
	int bufferoffset, 
	int length
) override

Parameters

i
Type: System..::..Int32
The zero-based column ordinal.
fieldOffset
Type: System..::..Int64
The index within the field from which to begin the read operation.
buffer
Type: array<System..::..Byte>[]()[][]
The buffer into which to read the stream of bytes.
bufferoffset
Type: System..::..Int32
The index for buffer to begin the read operation.
length
Type: System..::..Int32
The maximum length to copy into the buffer.

Return Value

The actual number of bytes read.

Implements

IDataRecord..::..GetBytes(Int32, Int64, array<Byte>[]()[][], Int32, Int32)
IDataRecord..::..GetBytes(Int32, Int64, array<Byte>[]()[][], Int32, Int32)

See Also