Added Virtual File System support

This commit is contained in:
snarmph 2024-12-05 18:15:05 +01:00
parent 363c4f19cb
commit 01f4ad7f62
18 changed files with 4582 additions and 64 deletions

View file

@ -503,7 +503,7 @@ buffer_t obstrAsBuf(obytestream_t *ctx) {
}
void obstrWrite(obytestream_t *ctx, const void *buf, usize buflen) {
uint8 *dst = alloc(ctx->arena, uint8, buflen);
uint8 *dst = alloc(ctx->arena, uint8, buflen, ALLOC_NOZERO);
memcpy(dst, buf, buflen);
}