Supports ReadOnlyMemory<byte> as input

Description

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 calling Bind. 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

Environment

None

Activity

Show:

Details

Assignee

Reporter

Priority

Created May 9, 2025 at 6:24 PM
Updated May 9, 2025 at 6:24 PM