© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
5 replies
androidui

BinaryReader and BinaryWriter api behaviour incompatibility

BinaryReader read(span<byte>) does not call read(byte[], int, int)

but BinaryWriter write(span<byte>) DOES call write(byte[], int, int)

is this expected behaviour?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

BinaryReader Question
C#CC# / help
4y ago
❔ Reading from ClientWebSocket with BinaryReader
C#CC# / help
3y ago
✅BinaryReader reads garbage when reading from compressed stream
C#CC# / help
6mo ago
❔ Change default behaviour of .NET Web API Validation Errors
C#CC# / help
3y ago