Skip to content

Introduce DividedStream #29

Description

@pepelev

Introduce a stream wrapped that allows to read stream by pieces.

Scenario is as follows:

  1. Get a read oriented stream
  2. Wrap it into DividedStream with piece size specification
  3. Get first piece as Stream
  4. Read it as requested but not more than piece size
  5. Dispose piece stream
  6. Get a next piece
  7. Repeat until newly returned piece stream is empty

This is useful when you need to store or work with large stream by pieces.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions