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 (오프셋 + 개수 - 1)은 원본에서 읽은 바이트로 바뀝니다.

적용 대상