Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

feat: add limit support to ReadChannel #688

Merged
merged 1 commit into from Jan 31, 2022
Merged

Commits on Jan 25, 2022

  1. feat: Add limit support to ReadChannel

    Add new methods to ReadChannel to allow limiting of the channel independent of any chunk sizes or buffers.
    
    ###### Motivation
    GCS supports range reads of objects, ReadChannel currently has `seek` to allow settings the begin offset, but doesn't provide limit to all seeing the end offset. The only alternative is to provide manually sized ByteBuffer(s) to read into that would have to track size externally.
    
    This new feature allows the Channel itself ot absorb the burden and prevent reading more bytes than necessary from GCS.
    BenWhitehead committed Jan 25, 2022
    Configuration menu
    Copy the full SHA
    9e25682 View commit details
    Browse the repository at this point in the history