Skip to content

When given a ReaderAt, support returning a SectionReader #10

@charles-dyfis-net

Description

@charles-dyfis-net

Returning []bytes means that tools using this library need to have enough memory available to store the data they're reading, even if the algorithms they're applying to that data would work just as well on a stream with constant memory requirements.

It would be helpful to be able to retrieve not just a file's contents, but a SectionReader that would let those contents be read directly from the underlying storage at a later time, when a seekable backing store is available.


I'm willing to do the work to implement this myself; this issue is provided as a vehicle for discussion, to ensure that the concept is acceptable before I go writing code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions