StreamExtensions.WriteInt16Async Method
Definition
Writes a Int16 to the stream asynchronously.
public static ValueTask WriteInt16Async(this Stream stream, Int16 value, Endian endian = Endian.MrKWatkins.BinaryPrimitives.Endian, CancellationToken cancellationToken = null);
Parameters
| Name | Type | Description |
|---|---|---|
| stream | Stream | |
| value | Int16 | The Int16 value to write. |
| endian | Endian | The endianness to use. |
| cancellationToken | CancellationToken | A cancellation token. |