Please sign in to comment.
Implement Span<byte>/ReadOnlySpan<byte> overloads
Addresses #66 .NET Core 2.1 implements Read and Write overloads that accept Span constructs. These constructs will work without overloading, but the default implementations work via inefficient byte array copies. This adds a netcoreapp2.1 target to the NuGet package, and implements efficient overloads of Read(Span<byte>) and Write(ReadOnlySpan<byte>). Overloads of ReadAsync and WriteAsync are not required, they have efficient default implementations that will use these methods as needed. The unit tests have also been updated to target .NET Core 2.1 so that they can test the new method implementations.
- Loading branch information...
Showing with 508 additions and 4 deletions.
Oops, something went wrong.