Skip to content
This repository was archived by the owner on Jan 30, 2026. It is now read-only.
This repository was archived by the owner on Jan 30, 2026. It is now read-only.

Implement BitReader and BitWriter #78

@pleonex

Description

@pleonex

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions