aboutsummaryrefslogtreecommitdiff
path: root/lib.h
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-09-02 15:52:40 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-09-02 15:52:40 +0100
commit89b9c0f94d290d5fb774af7fec5868deda0fd878 (patch)
treedf1c3b6e8c4d9bec5cd88cf28f36b343d96f8a95 /lib.h
parent7d369f6fadfe7a2ff589fb11c2ba3eaa98675373 (diff)
downloadobf-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 'lib.h')
0 files changed, 0 insertions, 0 deletions