Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binary Utils #438

Open
avdyushin opened this issue Dec 13, 2021 · 0 comments
Open

Binary Utils #438

avdyushin opened this issue Dec 13, 2021 · 0 comments
Labels
1.x.x expected somewhere in a future release component:bin-utils enhancement New feature or request

Comments

@avdyushin
Copy link
Contributor

avdyushin commented Dec 13, 2021

Introduce Binary object which extends BinaryFormat from https://github.com/Kotlin/kotlinx.serialization
which can decode given ByteArray and encode data into it back.

That can be done by adding BinaryDecoder which extends Decoder and BinaryEncoded which extends Encoder.

Also this module will contain helpers to work with bits (indexing/reading bit count at given index, etc).

  • insert bit(s)
  • read bit(s)
  • shift left/right with/without filling with zeros

Also taking into account MSB/LSB formats.

@avdyushin avdyushin added the enhancement New feature or request label Dec 13, 2021
@Daeda88 Daeda88 added the 1.x.x expected somewhere in a future release label Feb 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.x.x expected somewhere in a future release component:bin-utils enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants