Exemple #1
0
        public void ReadObjectOld()
        {
            var reader = new MessagePackReader(SerializedData);
            var res    = ObjectSerializerHandlerOld.Read(ref reader, Schema);

            Consumer.Consume(res);
        }
Exemple #2
0
        public void WriteObjectOld()
        {
            using var pooledWriter = new PooledArrayBufferWriter();
            var writer = pooledWriter.GetMessageWriter();

            ObjectSerializerHandlerOld.Write(ref writer, Schema, Object);

            writer.Flush();
            VerifyWritten(pooledWriter);
        }