Ejemplo n.º 1
0
        public void TestUInt32Array()
        {
            BEReader reader = new BEReader(new byte[]
            {
                0x00, 0x00, 0x00, 0x04,
                0xDE, 0xAD, 0xBE, 0xEF,
                0xBE, 0xEF, 0xDE, 0xAD,
                0xB0, 0x0B, 0x41, 0x42,
                0x40, 0x41, 0x42, 0x43
            });

            uint[] array = reader.ReadUInt32Array();
            Assert.Equal <int>(4, array.Length);
            Assert.Equal <uint>(0xDEADBEEF, array[0]);
            Assert.Equal <uint>(0xBEEFDEAD, array[1]);
            Assert.Equal <uint>(0xB00B4142, array[2]);
            Assert.Equal <uint>(0x40414243, array[3]);
        }
Ejemplo n.º 2
0
 public override void Deserialize(BEReader reader)
 {
     LowWatermark  = reader.ReadUInt32();
     ProcessedList = new HashSet <uint>(reader.ReadUInt32Array());
     RejectedList  = new HashSet <uint>(reader.ReadUInt32Array());
 }