Skip to content

StreamExtensions.WriteUInt64Async Method

Definition

Writes a UInt64 to the stream asynchronously.

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

Parameters

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

Returns

ValueTask