jltsiren / simple-sds

Simple succinct data structures (in Rust)
MIT License
47 stars 8 forks source link

Serialize bytes #3

Closed jltsiren closed 3 years ago

jltsiren commented 3 years ago

Serialization support for Vec<u8> and String. Both store the length of the data in the header and the concatenated bytes in the body. The body is padded with 0-bytes to the next multiple of 8 bytes. The corresponding memory-mapped structures are MappedBytes and MappedStr.