{"id":"arvidsilverlock/bitbuffer","name":"bitbuffer","scope":"arvidsilverlock","platform":"roblox","description":"Mirrored from the Wally registry.","version":"0.1.2","latest":"0.1.2","versions":["0.1.1","0.1.2"],"license":"MIT","licenseRating":"safe","licenseCaveats":["License identified from the packaged LICENSE file; the manifest declared none."],"licenseVerified":true,"dependencies":{},"integrity":"013fd4931157daf678382a0a630534fc24de2b03cbd7d8f32431258c69d71cc8","likes":0,"downloads":0,"install":"forest install arvidsilverlock/bitbuffer","url":"https://forest.dev/p/roblox/arvidsilverlock/bitbuffer","files":"https://api.forest.dev/ai/package/roblox/arvidsilverlock/bitbuffer/files","readme":"## bitbuffer\nBit level manipulation of buffers 😎\n\n1:1 recreation of the `buffer` api for the bit level, includes all functions except `len`, `create`, `tostring` and `fromstring`, as there is no use for a bit level counterpart.\n\n`writeu` and `writei` allows for widths ranging from 1 to 53. Writing an `i53` doesn't use 2's compliment for the format, due to f64 precision issues.\n\nIf you want to use a combined byte/bit offset, you can merley use this idiv and mod to separate it when calling the function `bitbuffer.writeu(b, offset // 8, offset % 8, value)`, the reason this isn't done internally is to allow for extra micro-optimization when using this module. Other ways to handle offsets are included [here](exampes/handling_offset.md).\n\nCan be installed with wally using `arvidsilverlock/bitbuffer@latest`\n\n## Current Version - 0.1.2\nChanges since the previous version include:\n- Inlining `writeu` and `readu` functions when used internally (except for `Reader` and `Writer` classes)\n- Inlining `IncrementOffset` within `Reader` and `Writer` classes.\n- Removal of the localisation of `buffer.read` calls, this has no effect on performance.\n- Adding an `Offset` class which handles your offset for you, `Reader` and `Writer` inherit from this.\n- The `buffer`, `byte` and `bit` values present in `Reader`s and `Writer`s are no longer considered private.","readmeTruncated":false}