示例#1
0
        public void WriteBigEndianStructArray()
        {
            var intStructs = new RandomIntStructGenerator(1).Structs;

            using (var extendedStream = new BigEndianMemoryStream(new Reloaded.Memory.Streams.ExtendedMemoryStream()))
            {
                extendedStream.WriteStruct(intStructs);
                Reloaded.Memory.StructArray.FromArrayBigEndianStruct <RandomIntStruct>(extendedStream.ToArray(), out var newStructs);

                Assert.Equal(intStructs, newStructs);
            };
        }