言語

PrintQueueStream.Read(Byte[], Int32, Int32) メソッド

定義

ストリームからバイト シーケンスを読み取り、読み取られたバイト数だけストリーム内の読み取り/書き込み位置を進めます。

public:
 override int Read(cli::array <System::Byte> ^ buffer, int offset, int count);
[System.Security.SecurityCritical]
public override int Read(byte[] buffer, int offset, int count);
public override int Read(byte[] buffer, int offset, int count);
[<System.Security.SecurityCritical>]
override this.Read : byte[] * int * int -> int
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

ストリームから読み取られたデータの格納を開始するバッファー内の 0 から始まるバイト オフセット。

count
Int32

ストリームから読み取る最大バイト数。

返品

バッファーに読み込まれるバイトの合計数を保持する Int32

属性

注釈

現在使用できないバイト数が多い場合、戻り値は要求されたバイト数より小さくすることができます。読み取り/書き込み位置がストリームの末尾にある場合は、数値を 0 にできます。

このメソッドが戻るときに、 buffer には指定されたバイト配列が含まれており、 offset と (offset + count - 1) の間の値は、ソースから読み取られたバイトに置き換えられます。

適用対象