Example #1
0
 public static byte[] EncodeUInt64(UInt64 v)
 {
     return(BitConverter.GetBytes(IsLittleEndian ? Endian.SwapUInt64(v) : v));
 }
Example #2
0
        public static UInt64 DecodeUInt64(byte[] data)
        {
            UInt64 netV = BitConverter.ToUInt64(data, 0);

            return(IsLittleEndian ? Endian.SwapUInt64(netV) : netV);
        }