Exemplo n.º 1
0
        ByteBuffer ValueBytes(T obj)
        {
            var valueWriter = new ByteBufferWriter();

            valueWriter.WriteVUInt32(_relationInfo.ClientTypeVersion);
            _relationInfo.ValueSaver(_transaction, valueWriter, obj);
            return(valueWriter.Data);
        }
Exemplo n.º 2
0
 ReadOnlySpan <byte> ValueBytes(T obj, ref SpanWriter writer)
 {
     writer.WriteVUInt32(_relationInfo.ClientTypeVersion);
     _relationInfo.ValueSaver(_transaction, ref writer, obj);
     return(writer.GetPersistentSpanAndReset());
 }