ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.8 Assembly / C1.Util.DX.Storage Namespace / NativeFileStream Class / Read Method / Read(IntPtr,Int32,Int32) Method
When this method returns, contains the specified buffer with the values between offset and (offset + count - 1) replaced by the bytes read from the current source.
The byte offset in array at which the read bytes will be placed.
The maximum number of bytes to read.

In This Topic
    Read(IntPtr,Int32,Int32) Method
    In This Topic
    Reads a block of bytes from the stream and writes the data in a given buffer.
    Syntax
    'Declaration
     
    Public Overloads Function Read( _
       ByVal buffer As System.IntPtr, _
       ByVal offset As System.Integer, _
       ByVal count As System.Integer _
    ) As System.Integer
    public System.int Read( 
       System.IntPtr buffer,
       System.int offset,
       System.int count
    )

    Parameters

    buffer
    When this method returns, contains the specified buffer with the values between offset and (offset + count - 1) replaced by the bytes read from the current source.
    offset
    The byte offset in array at which the read bytes will be placed.
    count
    The maximum number of bytes to read.

    Return Value

    The total number of bytes read into the buffer. This might be less than the number of bytes requested if that number of bytes are not currently available, or zero if the end of the stream is reached.
    Exceptions
    ExceptionDescription
    array is null.
    See Also