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