3 ms·
You piqued my interest, and it looks like NUL-terminated strings in files is actually common. tar, ELF, JPEG, gzip all use them. When the serialization format m
by millstone 13y ago
You piqued my interest, and it looks like NUL-terminated strings in files is actually common. tar, ELF, JPEG, gzip all use them. When the serialization format matches the in-memory format, you can mmap directly into a struct, which is fast and convenient.
- 1amzave 13y ago> When the serialization format matches the in-memory format, you can mmap directly into a struct, which is fast and convenient. ...and a non-starter if you ever have data interchange between differing types of machines.