Exemple #1
0
 private static void AssertPackU(UInt32?value)
 {
     using (var stream = new MemoryStream()) {
         BinaryV32Packer.PackU(stream, value);
         stream.Seek(0, SeekOrigin.Begin);
         var actual = BinaryV32Packer.UnpackU(stream);
         Assert.Equal(value, actual);
     }
 }
Exemple #2
0
 public UInt32?ReadNV()
 {
     return(BinaryV32Packer.UnpackU(_stream));
 }
Exemple #3
0
 public UInt32 ReadV()
 {
     return(BinaryV32Packer.UnpackU(_stream) ?? 0);
 }