DataConnector | ComponentOne
C1.AdoNet.Json Assembly / C1.DataConnector.AdoNet Namespace / C1DataReader 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 (C1DataReader)
    In This Topic
    Writes in the passed buffer a number of bytes read from within a column.
    Syntax
    'Declaration
     
    Public Overridable Function GetBytes( _
       ByVal ordinal As Integer, _
       ByVal dataOffset As Long, _
       ByVal buffer() As Byte, _
       ByVal bufferOffset As Integer, _
       ByVal length As Integer _
    ) As Long
    public virtual long GetBytes( 
       int ordinal,
       long dataOffset,
       byte[] buffer,
       int bufferOffset,
       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