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
Some binary formats requires to read / write fields bit by bit. We need to provide a solution for bit-level reading and writing.
I have considered implementing new methods in BinaryWriter and BinaryReader but it would make the implementation more complex since every other type like integer or string may need to mix bytes to be read. We should keep implementation different like BinaryReader and TextReader.
It should be able to read an write the following types:
Single bit in boolean
BitArray
Array of bytes
Integer of variable bit size
The text was updated successfully, but these errors were encountered:
Some binary formats requires to read / write fields bit by bit. We need to provide a solution for bit-level reading and writing.
I have considered implementing new methods in
BinaryWriter
andBinaryReader
but it would make the implementation more complex since every other type like integer or string may need to mix bytes to be read. We should keep implementation different likeBinaryReader
andTextReader
.It should be able to read an write the following types:
BitArray
The text was updated successfully, but these errors were encountered: