Skip to content

Replace LazilyLoadedFileReadCallback with ReaderSeeker#2182

Merged
Databean merged 2 commits intogoogle:mainfrom
Databean:lazily_loaded_io
Feb 25, 2026
Merged

Replace LazilyLoadedFileReadCallback with ReaderSeeker#2182
Databean merged 2 commits intogoogle:mainfrom
Databean:lazily_loaded_io

Conversation

@Databean
Copy link
Member

This allows reusing any ReaderSeeker implementation together withLazilyLoadedFile.

This also makes it possible to use SeekingZipSources in places that expect to receive std::unique_ptr<ReaderSeeker> implementations. It would also be possible to call SeekingZipSource::Reader() directly, but ZipSourceAsReaderSeekerImpl is self-contained, while the Reader() value on its own assumes the SeekingZipSource instance is still alive
in the background.

Bug: b/487500218

This allows reusing any ReaderSeeker implementation together with
LazilyLoadedFile.

Bug: b/487500218
This makes it possible to use `SeekingZipSource`s in places that expect
to receive `std::unique_ptr<ReaderSeeker>` implementations. It would
also be possible to call `SeekingZipSource::Reader()` directly, but
`ZipSourceAsReaderSeekerImpl` is self-contained, while the `Reader()`
value on its own assumes the `SeekingZipSource` instance is still alive
in the background.

Bug: b/487500218
@Databean Databean requested a review from cjreynol February 25, 2026 07:18
@Databean Databean enabled auto-merge February 25, 2026 08:47
@Databean Databean added this pull request to the merge queue Feb 25, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 25, 2026
@Databean Databean added this pull request to the merge queue Feb 25, 2026
Merged via the queue into google:main with commit 2c89202 Feb 25, 2026
26 checks passed
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