Share via


ZLibStream.BeginWrite(Byte[], Int32, Int32, AsyncCallback, Object) 메서드

정의

비동기 쓰기 작업을 시작합니다.

public:
 override IAsyncResult ^ BeginWrite(cli::array <System::Byte> ^ buffer, int offset, int count, AsyncCallback ^ asyncCallback, System::Object ^ asyncState);
public override IAsyncResult BeginWrite (byte[] buffer, int offset, int count, AsyncCallback? asyncCallback, object? asyncState);
override this.BeginWrite : byte[] * int * int * AsyncCallback * obj -> IAsyncResult
Public Overrides Function BeginWrite (buffer As Byte(), offset As Integer, count As Integer, asyncCallback As AsyncCallback, asyncState As Object) As IAsyncResult

매개 변수

buffer
Byte[]

데이터를 쓸 버퍼입니다.

offset
Int32

쓰기를 시작할 buffer 내의 바이트 오프셋입니다.

count
Int32

쓸 최대 바이트 수입니다.

asyncCallback
AsyncCallback

쓰기 작업이 완료되면 호출되는 선택적 비동기 콜백입니다.

asyncState
Object

다른 요청에서 특정 비동기 쓰기 요청을 구별하는 사용자 제공 개체입니다.

반환

보류 중인 비동기 쓰기 작업을 나타내는 개체입니다.

예외

buffernull입니다.

offset가 0보다 작은 경우

또는

offsetcount 가 배열의 범위를 벗어났습니다.

또는

countoffset부터 buffer 끝까지의 요소 수보다 큽니다.

적용 대상