ISessionOutputBufferExtensions.WriteAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| WriteAsync(ISessionOutputBuffer, Byte[]) |
Runs a blocking write of a byte array on a thread-pool thread. |
| WriteAsync(ISessionOutputBuffer, Int32) |
Runs a blocking single-byte write on a thread-pool thread. |
| WriteAsync(ISessionOutputBuffer, Byte[], Int32, Int32) |
Runs a blocking write of the specified part of a byte array on a thread-pool thread. |
WriteAsync(ISessionOutputBuffer, Byte[])
Runs a blocking write of a byte array on a thread-pool thread.
public static System.Threading.Tasks.Task WriteAsync(this Org.Apache.Http.IO.ISessionOutputBuffer self, byte[]? b);
static member WriteAsync : Org.Apache.Http.IO.ISessionOutputBuffer * byte[] -> System.Threading.Tasks.Task
Parameters
- self
- ISessionOutputBuffer
The session output buffer to which to write.
- b
- Byte[]
The array of bytes to write.
Returns
A task that completes when the blocking write operation completes.
Remarks
This method calls Write(Byte[]). Do not change b until the task completes.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
WriteAsync(ISessionOutputBuffer, Int32)
Runs a blocking single-byte write on a thread-pool thread.
public static System.Threading.Tasks.Task WriteAsync(this Org.Apache.Http.IO.ISessionOutputBuffer self, int b);
static member WriteAsync : Org.Apache.Http.IO.ISessionOutputBuffer * int -> System.Threading.Tasks.Task
Parameters
- self
- ISessionOutputBuffer
The session output buffer to which to write.
- b
- Int32
The value whose low-order eight bits are written.
Returns
A task that completes when the blocking write operation completes.
Remarks
This method calls Write(Int32).
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
WriteAsync(ISessionOutputBuffer, Byte[], Int32, Int32)
Runs a blocking write of the specified part of a byte array on a thread-pool thread.
public static System.Threading.Tasks.Task WriteAsync(this Org.Apache.Http.IO.ISessionOutputBuffer self, byte[]? b, int off, int len);
static member WriteAsync : Org.Apache.Http.IO.ISessionOutputBuffer * byte[] * int * int -> System.Threading.Tasks.Task
Parameters
- self
- ISessionOutputBuffer
The session output buffer to which to write.
- b
- Byte[]
The array that contains the bytes to write.
- off
- Int32
The zero-based index in b of the first byte to write.
- len
- Int32
The number of bytes to write.
Returns
A task that completes when the blocking write operation completes.
Remarks
This method calls Write(Byte[], Int32, Int32). Do not change b until the task completes.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.