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