It would be great if the driver could support Memory/ReadOnlyMemory. That will enable users some important performance benefits when calling Bind. Here is an example where an object with unknown serialized size (Data) is serialized to a memory stream.
Memory<byte> is the preferred way to work with blobs in .NET. It can represent a slice of an array or any contiguous memory with a custom MemoryManager<T>. You'll find it in all low-level .NET APIs such as Stream.WriteAsync, Socket.SendAsync, or MemoryPool.Rent.
It would be great if the driver could support
Memory
/ReadOnlyMemory
. That will enable users some important performance benefits when callingBind
. Here is an example where an object with unknown serialized size (Data
) is serialized to a memory stream.when with a Memory you could do