ByteBuffer ValueBytes(T obj) { var valueWriter = new ByteBufferWriter(); valueWriter.WriteVUInt32(_relationInfo.ClientTypeVersion); _relationInfo.ValueSaver(_transaction, valueWriter, obj); return(valueWriter.Data); }
ReadOnlySpan <byte> ValueBytes(T obj, ref SpanWriter writer) { writer.WriteVUInt32(_relationInfo.ClientTypeVersion); _relationInfo.ValueSaver(_transaction, ref writer, obj); return(writer.GetPersistentSpanAndReset()); }