Source/NFX/IOMiscUtils.cs
/// <summary>
/// Writes an unsigned long integer encoded as little endian to the given stream
/// </summary>
Writes an unsigned long integer encoded as little endian to the given stream
Writes an unsigned long integer encoded as little endian to the given stream
public static void WriteLEUInt64(this Stream s, ulong value)
        {
          s.WriteByte((byte)(value));
          s.WriteByte((byte)(value >> 8));
          s.WriteByte((byte)(value >> 16));
          s.WriteByte((byte)(value >> 24));
          s.WriteByte((byte)(value >> 32));
          s.WriteByte((byte)(value >> 40));
          s.WriteByte((byte)(value >> 48));
          s.WriteByte((byte)(value >> 56));
        }
public static void WriteLEUInt64 ( this Stream s , ulong value ) { s . WriteByte ( ( byte ) ( value ) ) ; s . WriteByte ( ( byte ) ( value >> 8 ) ) ; s . WriteByte ( ( byte ) ( value >> 16 ) ) ; s . WriteByte ( ( byte ) ( value >> 24 ) ) ; s . WriteByte ( ( byte ) ( value >> 32 ) ) ; s . WriteByte ( ( byte ) ( value >> 40 ) ) ; s . WriteByte ( ( byte ) ( value >> 48 ) ) ; s . WriteByte ( ( byte ) ( value >> 56 ) ) ; }
Writes an unsigned long integer encoded as little endian to the given stream
Writes an unsigned long integer encoded as little endian to the given stream
Stream
this
value
ulong