Skip to content

IO - TBaseSpaceStream, TFreeSpaceStream, TReservedSpaceStream, TReservedSpaceMode - #1238

Merged
ctrlaltca merged 1 commit into
pradosoft:masterfrom
belisoful:io-free-space
Aug 12, 2026
Merged

IO - TBaseSpaceStream, TFreeSpaceStream, TReservedSpaceStream, TReservedSpaceMode#1238
ctrlaltca merged 1 commit into
pradosoft:masterfrom
belisoful:io-free-space

Conversation

@belisoful

Copy link
Copy Markdown
Member

Adds decorators that protect reserved byte ranges (e.g. EXIF private spaces) of an inner stream. TReservedSpaceStream keeps 1:1 addressing and guards the ranges with Clip/Fail/Skip modes; TFreeSpaceStream presents the non-reserved bytes as one contiguous PSR-7 stream with logical tell/seek/size. Ranges normalize to sorted, merged spans; skipping seeks or discards on non-seekable inners.

…aceMode - reserved-space stream decorators - unit tests, classes.php, messages.txt

Adds decorators that protect reserved byte ranges (e.g. EXIF private spaces) of an inner stream. TReservedSpaceStream keeps 1:1 addressing and guards the ranges with Clip/Fail/Skip modes; TFreeSpaceStream presents the non-reserved bytes as one contiguous PSR-7 stream with logical tell/seek/size. Ranges normalize to sorted, merged spans; skipping seeks or discards on non-seekable inners.
@belisoful
belisoful marked this pull request as ready for review August 12, 2026 03:57
@ctrlaltca
ctrlaltca merged commit 07054e1 into pradosoft:master Aug 12, 2026
17 checks passed
@belisoful
belisoful deleted the io-free-space branch August 13, 2026 05:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants