IStream.Read(Byte[], Int32, IntPtr) 方法

定義

從串流物件讀取指定數量的位元組到記憶體,從目前的尋道指標開始。

public:
 void Read(cli::array <System::Byte> ^ pv, int cb, IntPtr pcbRead);
public void Read(byte[] pv, int cb, IntPtr pcbRead);
abstract member Read : byte[] * int * nativeint -> unit
Public Sub Read (pv As Byte(), cb As Integer, pcbRead As IntPtr)

參數

pv
Byte[]

當此方法回傳時,包含從串流讀取的資料。 這個參數會未初始化傳遞。

cb
Int32

從串流物件讀取的位元組數。

pcbRead
IntPtr

nativeint

一個指標指向 uint 一個變數,該變數接收從串流物件讀取的實際位元組數。

備註

欲了解更多資訊,請參閱 現有的 ISequentialStream::Read 文件。

適用於