Krystalware
SlickUpload logo

Read Method (buffer, offset, count)

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

Declaration Syntax

C#

public override int Read(
	byte[] buffer,
	int offset,
	int count
)

Visual Basic

Public Overrides Function Read ( _
	buffer As Byte(), _
	offset As Integer, _
	count As Integer _
) As Integer

Parameters

buffer– (array< Byte >[]()[])
When this method returns, contains the specified byte array with the values between offset and (offset + count - 1) replaced by the bytes read from the current source.
offset– (Int32)
The byte offset in buffer at which to begin reading.
count– (Int32)
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.

Assembly: Krystalware.SlickUpload, Version: 4.0