1
1
mirror of https://github.com/wader/fq.git synced 2024-12-23 13:22:58 +03:00
fq/internal
Mattias Wadman 7c5215347d bitio,decode: Refactor bitio usage and make buffer slicing more correct
Remove bitio.Buffer layer. bitio.Buffer was a kitchen sink layer with helpers
now it's just a buffer and most functions have been moved to decode instead.

bitio package now only have primitive types and functions simialar to standard
library io and bytes packages.

Make nearly eveything internally use bitio.Bit* interfaces so that slicing work
correctly this will also make it possible to start experimenting with more
complicated silcing helpers, ex things like:
breplace(.header.bitrate; 123) to get a new buffer with bitrate changed.
2022-02-04 21:41:53 +01:00
..
aheadreadseeker mod: Use proper path and dont use replace 2021-09-12 13:08:50 +02:00
ansi interp,decode: Refactor out Scalar from Value and merge Array/Struct into Compound 2021-11-05 17:29:22 +01:00
asciiwriter mod: Use proper path and dont use replace 2021-09-12 13:08:50 +02:00
bitioextra bitio,decode: Refactor bitio usage and make buffer slicing more correct 2022-02-04 21:41:53 +01:00
colorjson Init 2021-09-12 13:08:42 +02:00
columnwriter mod: Use proper path and dont use replace 2021-09-12 13:08:50 +02:00
ctxreadseeker mod: Use proper path and dont use replace 2021-09-12 13:08:50 +02:00
ctxstack Init 2021-09-12 13:08:42 +02:00
difftest difftest: Sync code 2021-10-30 01:26:00 +02:00
gojqextra decode,interp: Finish up nil value support 2022-01-17 10:49:46 +01:00
hexdump bitio,decode: Refactor bitio usage and make buffer slicing more correct 2022-02-04 21:41:53 +01:00
hexpairwriter bitio,decode: Refactor bitio usage and make buffer slicing more correct 2022-02-04 21:41:53 +01:00
ioextra interp: Move *CtxWriter to ioextra, some comments cleanup 2021-11-05 17:28:29 +01:00
mathextra num,mathextra: Rename num package to mathextra 2022-01-15 19:00:42 +01:00
pos Init 2021-09-12 13:08:42 +02:00
profile cli: Make profile build optional and move it to cli 2021-09-12 13:08:53 +02:00
progressreadseeker doc: Document io packages a bit 2021-11-21 21:55:53 +01:00
recoverfn decode,interp: Make fuzzing work again and cleanup fatal/error code 2021-11-16 17:11:26 +01:00
script interp: Add Platform() method to OS interface 2022-01-29 11:31:36 +01:00
shquote lint: Fix typeassert and case exhaustive warnings 2022-01-25 17:23:41 +01:00