Skip to content

StreamExtensions.WriteUInt32Async Method

Definition

Writes a UInt32 to the stream asynchronously.

public static ValueTask WriteUInt32Async(this Stream stream, uint value, Endian endian = Endian.MrKWatkins.BinaryPrimitives.Endian, CancellationToken cancellationToken = null);

Parameters

Name Type Description
stream Stream
value UInt32 The UInt32 value to write.
endian Endian The endianness to use.
cancellationToken CancellationToken A cancellation token.

Returns

ValueTask