Skip to content
This repository has been archived by the owner on Nov 24, 2020. It is now read-only.

Add a get_stream method to Partition #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Wolf480pl
Copy link

It returns a file-like object for the specified chunk

The get_stream method returns a file-like object
for a specified chunk.
@mfranciszkiewicz
Copy link
Owner

Why do we need random access to chunk's data? Can't multiple chunks form a piece?

@Wolf480pl
Copy link
Author

This way it's easier to use it in my bittorrent-over-devp2p PoC - I still have the concept of subpieces there (even though currently there's 1 subpiece per piece).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants