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); } }
public UInt32?ReadNV() { return(BinaryV32Packer.UnpackU(_stream)); }
public UInt32 ReadV() { return(BinaryV32Packer.UnpackU(_stream) ?? 0); }