Open Svisstack opened 3 years ago
NetMQ Version: 4.0.16
Msg will expose Span<byte> Slice() and Memory<byte> SliceAsMemory();
Span<byte> Slice()
Memory<byte> SliceAsMemory();
Msg.Data is marked as Obsoleteand only Span<byte> Slice() is exposed.
Msg.Data
Obsolete
ReadOnlyMemory<byte>
I was wondering if this is on purpose or that function could be merged into this codebase.
I'm not aware of any reason not to do this. Would you like to make a pull request?
Environment
Expected behaviour
Msg will expose
Span<byte> Slice()
andMemory<byte> SliceAsMemory();
Actual behaviour
Msg.Data
is marked asObsolete
and onlySpan<byte> Slice()
is exposed.Steps to reproduce the behaviour
ReadOnlyMemory<byte>
representingMsg.Data
.Obsolete
.I was wondering if this is on purpose or that function could be merged into this codebase.