DataConnector
C1.DataConnector Assembly / C1.DataConnector Namespace / C1DataReaderBase Class / GetBytes Method
The zero-based column ordinal.
The index within the field from which to begin the read operation.
The buffer into which to read the stream of bytes.
The index within the buffer where the write operation is to start.
The maximum length to copy into the buffer.

In This Topic
    GetBytes Method
    In This Topic
    Reads a stream of bytes from the specified column offset into the buffer an array starting at the given buffer offset.
    Syntax
    'Declaration
     
    Public Overrides Function GetBytes( _
       ByVal ordinal As System.Integer, _
       ByVal dataOffset As System.Long, _
       ByVal buffer() As System.Byte, _
       ByVal bufferOffset As System.Integer, _
       ByVal length As System.Integer _
    ) As System.Long
    public override System.long GetBytes( 
       System.int ordinal,
       System.long dataOffset,
       System.byte[] buffer,
       System.int bufferOffset,
       System.int length
    )

    Parameters

    ordinal
    The zero-based column ordinal.
    dataOffset
    The index within the field from which to begin the read operation.
    buffer
    The buffer into which to read the stream of bytes.
    bufferOffset
    The index within the buffer where the write operation is to start.
    length
    The maximum length to copy into the buffer.

    Return Value

    The actual number of bytes read.
    See Also