Commit graph

1 commit

Author SHA1 Message Date
Andreas Kling
26504d84bb LibCore: Add immutable byte storage for mapped ranges
Allow MappedFile to expose a byte range within an fd. It maps the
page-aligned region required by mmap internally.

Add ImmutableBytes as a small shared holder for either owned bytes or a
mapped file. This lets cache code thread file-backed response bodies
through without copying response data into anonymous memory.

Cover non-page-aligned ranges, empty ranges, invalid ranges, and mapped
ImmutableBytes in TestLibCoreMappedFile.
2026-05-16 08:13:35 +02:00