public void ReadObjectOld() { var reader = new MessagePackReader(SerializedData); var res = ObjectSerializerHandlerOld.Read(ref reader, Schema); Consumer.Consume(res); }
public void WriteObjectOld() { using var pooledWriter = new PooledArrayBufferWriter(); var writer = pooledWriter.GetMessageWriter(); ObjectSerializerHandlerOld.Write(ref writer, Schema, Object); writer.Flush(); VerifyWritten(pooledWriter); }