Skip to content

StreamExtensions.WriteInt64Async Method

Definition

Writes a Int64 to the stream asynchronously.

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

Parameters

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

Returns

ValueTask