diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-09-02 15:52:40 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-09-02 15:52:40 +0100 |
commit | 89b9c0f94d290d5fb774af7fec5868deda0fd878 (patch) | |
tree | df1c3b6e8c4d9bec5cd88cf28f36b343d96f8a95 /examples | |
parent | 7d369f6fadfe7a2ff589fb11c2ba3eaa98675373 (diff) | |
download | obf-89b9c0f94d290d5fb774af7fec5868deda0fd878.tar.gz obf-89b9c0f94d290d5fb774af7fec5868deda0fd878.tar.bz2 obf-89b9c0f94d290d5fb774af7fec5868deda0fd878.zip |
Chunk allocator for file handling
Apparently you can't just `fseek` because it's "not portable" and
"deeply offensive" or whatever, so here's a really dirty chunk based
allocator which uses `fread` to just read chunks of data at a time and
basically runs around this issue.
While it's slower than an fseek solution for general files, this
solution allows pipes and other _weird_ things that count as "files"
to just werk.
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions