BitSharp.Common.Bits.EncodeUInt64BE C# (CSharp) Method

EncodeUInt64BE() public static method

public static EncodeUInt64BE ( ulong value, byte buffer, int offset ) : void
value ulong
buffer byte
offset int
return void
        public static void EncodeUInt64BE(ulong value, byte[] buffer, int offset)
        {
            EncodeInt64BE(unchecked((long)value), buffer, offset);
        }
    }

Usage Example

Ejemplo n.º 1
0
 public void ToByteArrayBE(byte[] buffer, int offset = 0)
 {
     for (var i = 0; i < width; i++)
     {
         Bits.EncodeUInt64BE(parts[i], buffer, offset);
         offset += 8;
     }
 }