BlobReader.ReadBytes 方法

定義

多載

ReadBytes(Int32, Byte[], Int32)

從目前位置開始讀取位元組,並在指定緩衝區的指定位移處開始將它們寫入。

ReadBytes(Int32)

讀取從目前位置開始的位元組。

ReadBytes(Int32, Byte[], Int32)

來源:
BlobReader.cs
來源:
BlobReader.cs
來源:
BlobReader.cs

從目前位置開始讀取位元組,並在指定緩衝區的指定位移處開始將它們寫入。

public:
 void ReadBytes(int byteCount, cli::array <System::Byte> ^ buffer, int bufferOffset);
public void ReadBytes (int byteCount, byte[] buffer, int bufferOffset);
member this.ReadBytes : int * byte[] * int -> unit
Public Sub ReadBytes (byteCount As Integer, buffer As Byte(), bufferOffset As Integer)

參數

byteCount
Int32

要讀取的位元組數。

buffer
Byte[]

所讀取位元組將會寫入的目的地緩衝區。

bufferOffset
Int32

所讀取位元組將會寫入之目的地緩衝區中的位移。

例外狀況

byteCount 位元無法使用。

適用於

ReadBytes(Int32)

來源:
BlobReader.cs
來源:
BlobReader.cs
來源:
BlobReader.cs

讀取從目前位置開始的位元組。

public:
 cli::array <System::Byte> ^ ReadBytes(int byteCount);
public byte[] ReadBytes (int byteCount);
member this.ReadBytes : int -> byte[]
Public Function ReadBytes (byteCount As Integer) As Byte()

參數

byteCount
Int32

要讀取的位元組數。

傳回

Byte[]

位元組陣列。

例外狀況

byteCount 位元無法使用。

適用於