PayloadStream.Read(Byte[], Int32, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
此函式由 StreamReader 在處理資料串流時呼叫。 它看起來沒有參考資料,但實際上是 StreamReader 必須實作的,就像 Length 一樣。
public override int Read(byte[] buffer, int offset, int count);
override this.Read : byte[] * int * int -> int
Public Overrides Function Read (buffer As Byte(), offset As Integer, count As Integer) As Integer
參數
- buffer
- Byte[]
緩衝區可以讀取。
- offset
- Int32
從哪裡開始閱讀。
- count
- Int32
閱讀的量。
傳回
緩衝區中尚未讀取的區塊數量。