#blob #iterator #binary #storage

no-std dev blobby

Iterator over simple binary blob storage

2 releases

0.1.1 Sep 26, 2018
0.1.0 Sep 26, 2018
Download history 90/week @ 2018-10-02 98/week @ 2018-10-09 109/week @ 2018-10-16 208/week @ 2018-10-23 208/week @ 2018-10-30 266/week @ 2018-11-06 294/week @ 2018-11-13

15 downloads per month
Used in 27 crates (4 directly)


126 lines


This crate provides several iterators over simply binary blob storage.

Storage format

Data in the storage format starts with magical string "blobby', next is one byte which denotes how many bytes are used for blob length prefixes. For example "blobby1" means that 1 byte is used for length, and "blobby2", "blobby4", "blobby8" mean 2, 4 and 8 bytes respectively (this number will be denoted as n).

After header goes a sequence of records. Each record starts with prefix of n bytes in which record length (excluding prefix) is stored using little endian format.


First line represents input binary string and second line shows blobs stored in it.

"blobby1\x05hello\x01 \x00\x05world"
"hello", " ", "", "world"

Example for n=2, note that length is given in little endian format:

"foo", "", "bar"