Beispiel #1
0
 public async Task ReadUInt64BigEndian_Async()
 {
     using (var f = new GenericFile())
     {
         f.CreateFile(new byte[] { 00, 00, 00, 00, 00, 00, 00, 42, 255, 255, 255, 255, 255, 255, 255, 255 });
         Assert.AreEqual((UInt64)42, await f.ReadUInt64BigEndianAsync(0));
         Assert.AreEqual(UInt64.MaxValue, await f.ReadUInt64BigEndianAsync(8));
     }
 }