BCnEncoder.NET icon indicating copy to clipboard operation
BCnEncoder.NET copied to clipboard

Make `DecodeRaw` accept `ReadOnlyMemory<byte>`

Open Crauzer opened this issue 2 years ago • 1 comments

DecodeRaw is currently a wrapper for DecodeRawInternal which itself accepts ReadOnlyMemory<byte>. There is no reason why the public function shouldn't also accept ReadOnlyMemory/ReadOnlySpan.

Crauzer avatar Jan 16 '23 14:01 Crauzer

I think issue also applies to the whole library, it would be much better to use the Memory/Span types for public APIs

Crauzer avatar Jan 16 '23 14:01 Crauzer