You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is more of a feature question, to know if it'd be considered interesting / in-scope.
Currently, both the read/write extensions and ByteOrder essentially require specifying the requested byteorder on a per-operation basis (as the subject / instance for ByteOrder, and as type parameter for the Read/WriteBytesExt extensions).
In my experience though byte order rarely changes between reads or writes, generally the entire stream is in one endianness or the other. So maybe the endianness types could be used to create a stream wrapper, which would use unparameterised methods? e.g.
The gain is limited for such a small amounts of writes, but for larger spans with possibly dozens of reads/writes the readability would be pretty significant.
Not quite sure how that would integrate with #95 though.
The text was updated successfully, but these errors were encountered:
Ah apparently I missed #67 of which this is in fact a duplicate, sorry about that (though I do agree with the original user / reporter that it's a different angle / axis than #27, and more of a competing change in direction).
My thinking was rather similar to the other proposal, a convenience layer sitting atop the existing system, would perform the endianness adaption without having to specify it every time.
This is more of a feature question, to know if it'd be considered interesting / in-scope.
Currently, both the read/write extensions and
ByteOrder
essentially require specifying the requested byteorder on a per-operation basis (as the subject / instance forByteOrder
, and as type parameter for theRead/WriteBytesExt
extensions).In my experience though byte order rarely changes between reads or writes, generally the entire stream is in one endianness or the other. So maybe the endianness types could be used to create a stream wrapper, which would use unparameterised methods? e.g.
or
could become the somewhat better-flowing
The gain is limited for such a small amounts of writes, but for larger spans with possibly dozens of reads/writes the readability would be pretty significant.
Not quite sure how that would integrate with #95 though.
The text was updated successfully, but these errors were encountered: