Partager via


StreamHelper.ReadBytes Method

Definition

Overloads

ReadBytes(Stream, Int64, Int32)
ReadBytes(Stream, Int64, Int32, SeekOrigin)

ReadBytes(Stream, Int64, Int32)

public static byte[] ReadBytes (System.IO.Stream stream, long offset, int length);
static member ReadBytes : System.IO.Stream * int64 * int -> byte[]
Public Shared Function ReadBytes (stream As Stream, offset As Long, length As Integer) As Byte()

Parameters

stream
Stream
offset
Int64
length
Int32

Returns

Byte[]

Applies to

ReadBytes(Stream, Int64, Int32, SeekOrigin)

public static byte[] ReadBytes (System.IO.Stream stream, long offset, int length, System.IO.SeekOrigin origin);
static member ReadBytes : System.IO.Stream * int64 * int * System.IO.SeekOrigin -> byte[]
Public Shared Function ReadBytes (stream As Stream, offset As Long, length As Integer, origin As SeekOrigin) As Byte()

Parameters

stream
Stream
offset
Int64
length
Int32
origin
SeekOrigin

Returns

Byte[]

Applies to