9 Commits

Author SHA1 Message Date
Quentin Renard
48d50c2eb9 Moved to go 1.18 to use any instead of interface{} 2025-02-13 11:37:23 +01:00
Danil Korymov
d8204b0bf1 Batch bit operations (#10)
* Batching

* Bits writer to separate method writeBitsN. Met API requirement for per byte callback. Write Big-Endian int't with writeBitsN. Small tweaks.

* Fix for writeFullInt

* Fix writeBitsN

* Remove unnecessary comments. Add safeguard in writeBitsN. Move multibyte write logic to separate method.
2022-09-07 15:10:49 +02:00
Barbashov Ilya
0d8b6f5e22 BitsWriter and BitsWriterBatch: WriteBytesN added (#8)
Co-authored-by: Ilya Barbashov <barbashov.ilya@me.com>
2021-03-24 09:04:09 +01:00
Barbashov Ilya
a92c3956b5 Add BitsWriter write callback (#7)
* BitsWriter: add WriteCallback

* BitsWriter: pr fixes

Co-authored-by: Ilya Barbashov <barbashov.ilya@me.com>
2021-03-03 12:24:57 +01:00
Barbashov Ilya
4206e7c4e4 BitsWriterBatch added (#6)
* BitsWriter: Try* functions

* Try* functions extracted as BitsWriterBatch

Co-authored-by: Ilya Barbashov <barbashov.ilya@me.com>
2021-02-03 17:38:00 +01:00
Barbashov Ilya
ab35c8487f BitsWriter: WriteN bugfix; Write and WriteN zero allocation and optimizations (#5)
* BitsWriter optimization: first take

* BitsWriter optimization: zero allocation

* BitsWriter optimization: WriteN bugfix and optimization

Co-authored-by: Ilya Barbashov <barbashov.ilya@me.com>
2021-02-01 09:23:51 +01:00
Quentin Renard
aa2aeb1fad Updated README 2020-01-02 17:35:45 +01:00
Quentin Renard
8441bde62e Added map 2020-01-02 12:34:00 +01:00
Quentin Renard
8c840dce3e Added binary + bytes 2019-12-31 16:09:30 +01:00