Example #1
0
 /// <summary>
 /// Writes uint64 data into internal buffer.
 /// </summary>
 /// <param name="data">uint64 data to write.</param>
 protected void Write(UInt64 data)
 {
     this.Write(data.GetBytes());
 }
Example #2
0
 public static IEnumerable <byte> Concat(this IEnumerable <byte> sequence, UInt64 value)
 {
     return(sequence.Concat(value.GetBytes()));
 }
Example #3
0
 /// <summary>
 /// <para>Изменить порядок байт</para>
 /// </summary>
 /// <param name="value">Исходное значение</param>
 /// <returns>Результируюущее значение</returns>
 public static UInt64 Swap(this UInt64 value)
 {
     return(LoadUInt64(value.GetBytes(true), 0, false));
 }
Example #4
0
 public BinaryWriter Write(UInt64 value)
 {
     byteList.AddRange(value.GetBytes());
     return(this);
 }