Share via


AdlsInputStream.Read Method

Definition

Overloads

Read(Byte[], Int32, Int32)

Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read Synchronous operation.

Read(Int64, Byte[], Int32, Int32)

Reads a sequence of bytes directly from the server. It does not update anything in the stream.

Read(Byte[], Int32, Int32)

Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read Synchronous operation.

public override int Read (byte[] output, int offset, int count);
override this.Read : byte[] * int * int -> int
Public Overrides Function Read (output As Byte(), offset As Integer, count As Integer) As Integer

Parameters

output
Byte[]

Output byte array

offset
Int32

offset at which data should be put in the output array

count
Int32

Count of the bytes read

Returns

Number of bytes read

Applies to

Read(Int64, Byte[], Int32, Int32)

Reads a sequence of bytes directly from the server. It does not update anything in the stream.

public int Read (long position, byte[] output, int offset, int count);
override this.Read : int64 * byte[] * int * int -> int
Public Function Read (position As Long, output As Byte(), offset As Integer, count As Integer) As Integer

Parameters

position
Int64

Position in the file from where it should start reading data

output
Byte[]

Output byte array

offset
Int32

offset at which data should be put in the output array

count
Int32

Count of the bytes read

Returns

Number of bytes read

Applies to