Esempio n. 1
0
 public static Uuid64 Read(byte[] value, int offset, int count)
 {
     Contract.DoesNotOverflow(value, offset, count, nameof(value));
     if (count == 0)
     {
         return(default(Uuid64));
     }
     if (count == 8)
     {
         return(new Uuid64(ReadUnsafe(value, 0)));
     }
     throw FailInvalidBufferSize(nameof(count));
 }