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

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

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

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