Beispiel #1
0
        public void Test_Lz4_NumberArrays()
        {
            var data = TestObjectGeneralNumbers.GetArray(100);

            using (var mem = new MemoryStream())
            {
                var boisLz4Serializer = new BoisLz4Serializer();
                boisLz4Serializer.Pickle(data, mem);

                mem.Seek(0, SeekOrigin.Begin);
                boisLz4Serializer.Unpickle <TestObjectGeneralNumbers>(mem);
            }
        }
Beispiel #2
0
 protected override T Deserialize(Stream stream)
 {
     return(Formatter.Unpickle <T>(stream));
 }