Crates.io | bits128 |
lib.rs | bits128 |
version | 0.1.3 |
source | src |
created_at | 2019-03-03 23:04:15.885256 |
updated_at | 2019-03-04 02:28:19.646593 |
description | A struct to iterate over 128 bits by taking only 128 bits |
homepage | |
repository | https://github.com/elichai/bits128 |
max_upload_size | |
id | 118544 |
size | 8,314 |
Iterating over 128 array of bytes
bits128
provides a struct that let's you use 128 bits while taking only 128 bits in memory.
if you would use something like [bool; 128]
it would take 128*8 bits in memory because every bool takes 1 bytes(8bits)
In the future I'll implement an Iterator over the bits so you can iterate over them easily.