Skip to content

StreamExtensions.WriteUInt16 Method ​

Definition ​

Writes a UInt16 to the stream.

c#
public static void WriteUInt16(this Stream stream, ushort value, Endian endian = Endian.MrKWatkins.BinaryPrimitives.Endian);

View source

Parameters ​

NameTypeDescription
streamStream
valueUInt16The UInt16 value to write.
endianEndianThe endianness to use.