Exemple #1
0
        // Token: 0x06002975 RID: 10613 RVA: 0x001BE830 File Offset: 0x001BCA30
        public Guid(byte[] bytes)
        {
            ulong num  = (ulong)bytes[0] | (ulong)bytes[1] << 8 | (ulong)bytes[2] << 16 | (ulong)bytes[3] << 24 | (ulong)bytes[4] << 32 | (ulong)bytes[5] << 40 | (ulong)bytes[6] << 48 | (ulong)bytes[7] << 56;
            ulong num2 = (ulong)bytes[8] | (ulong)bytes[9] << 8 | (ulong)bytes[10] << 16 | (ulong)bytes[11] << 24 | (ulong)bytes[12] << 32 | (ulong)bytes[13] << 40 | (ulong)bytes[14] << 48 | (ulong)bytes[15] << 56;

            this._a = (BitConverter.IsLittleEndian ? num : Guid.SwapEndianness(num));
            this._b = (BitConverter.IsLittleEndian ? num2 : Guid.SwapEndianness(num2));
        }
Exemple #2
0
 // Token: 0x06002979 RID: 10617 RVA: 0x001BEAB8 File Offset: 0x001BCCB8
 public byte[] ToByteArray()
 {
     byte[] array  = new byte[16];
     byte[] bytes  = BitConverter.GetBytes((!BitConverter.IsLittleEndian) ? Guid.SwapEndianness(this._a) : this._a);
     byte[] bytes2 = BitConverter.GetBytes((!BitConverter.IsLittleEndian) ? Guid.SwapEndianness(this._b) : this._b);
     for (int i = 0; i < 8; i++)
     {
         array[i]     = bytes[i];
         array[i + 8] = bytes2[i];
     }
     return(array);
 }