[]
        
(Showing Draft Content)

C1.Util.DX.Storage.NativeFileStream.Read

Read Method

Read(byte[], int, int)

Declaration
public override int Read(byte[] buffer, int offset, int count)
Parameters
Type Name Description
byte[] buffer
int offset
int count
Returns
Type Description
int
Overrides

Read(IntPtr, int, int)

Reads a block of bytes from the stream and writes the data in a given buffer.

Declaration
public int Read(IntPtr buffer, int offset, int count)
Parameters
Type Name Description
IntPtr 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.

int offset

The byte offset in array at which the read bytes will be placed.

int count

The maximum number of bytes to read.

Returns
Type Description
int

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
Type Condition
ArgumentNullException

array is null.