Exemplo n.º 1
0
        public void CanConvertToInt32AndBack()
        {
            var header1 = new PsnChunkHeader(56, 63, true);

            uint value = header1.ToUInt32();

            var header2 = PsnChunkHeader.FromUInt32(value);

            header1.Should().Be(header2, "because converting from an int and back should produce the same value");
        }
 public PsnChunkHeader ReadChunkHeader()
 {
     return(PsnChunkHeader.FromUInt32(ReadUInt32()));
 }
 public void Write(PsnChunkHeader chunkHeader)
 {
     Write(chunkHeader.ToUInt32());
 }