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); } }
protected override void Serialize(T obj, Stream stream) { Formatter.Pickle(obj, stream); }