VistaDB 6
VistaDB.Provider Namespace / VistaDBDataReader Class / GetBytes Method
The zero-based column ordinal.The zero-based column ordinal.
The index within the row from which to begin the read operation.The index within the row from which to begin the read operation.
The buffer into which to copy the data.The buffer into which to copy the data.
The index with the buffer to which the data will be copied.The index with the buffer to which the data will be copied.
The maximum number of characters to read.The maximum number of characters to read.


In This Topic
    GetBytes Method (VistaDBDataReader)
    In This Topic
    Reads a stream of bytes from the specified column, starting at location indicated by dataOffset, into the buffer, starting at the location indicated by bufferOffset. Reads a stream of bytes from the specified column, starting at location indicated by dataIndex, into the buffer, starting at the location indicated by bufferIndex.
    Syntax
    'Declaration
     
    
    Public Overrides NotOverridable 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
    'Usage
     
    
    Dim instance As VistaDBDataReader
    Dim ordinal As System.Integer
    Dim dataOffset As System.Long
    Dim buffer() As System.Byte
    Dim bufferOffset As System.Integer
    Dim length As System.Integer
    Dim value As System.Long
     
    value = instance.GetBytes(ordinal, dataOffset, buffer, bufferOffset, length)
    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.The zero-based column ordinal.
    dataOffset
    The index within the row from which to begin the read operation.The index within the row from which to begin the read operation.
    buffer
    The buffer into which to copy the data.The buffer into which to copy the data.
    bufferOffset
    The index with the buffer to which the data will be copied.The index with the buffer to which the data will be copied.
    length
    The maximum number of characters to read.The maximum number of characters to read.

    Return Value

    The actual number of bytes read.The actual number of bytes read.
    Exceptions
    ExceptionDescription
    The specified cast is not valid.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also