Skip to content

Introduce DividedStream #29

@pepelev

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.

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