#include <streamingchunkselector.h>
ChunkSelector which supports streaming mode. It has a range of chunks which are to be downloaded sequentially. And it has a cursor, to support jumping around in the stream.
Definition at line 36 of file streamingchunkselector.h.
◆ dataChecked()
void bt::StreamingChunkSelector::dataChecked |
( |
const bt::BitSet & |
ok_chunks, |
|
|
Uint32 |
from, |
|
|
Uint32 |
to |
|
) |
| |
|
overridevirtual |
Data has been checked, and these chunks are OK.
- Parameters
-
Reimplemented from bt::ChunkSelector.
◆ init()
◆ reincluded()
void bt::StreamingChunkSelector::reincluded |
( |
bt::Uint32 |
from, |
|
|
bt::Uint32 |
to |
|
) |
| |
|
overridevirtual |
A range of chunks has been reincluded.
- Parameters
-
from | The first chunk |
to | The last chunk |
Reimplemented from bt::ChunkSelector.
◆ reinsert()
void bt::StreamingChunkSelector::reinsert |
( |
bt::Uint32 |
chunk | ) |
|
|
overridevirtual |
◆ select()
◆ selectRange()
bool bt::StreamingChunkSelector::selectRange |
( |
bt::Uint32 & |
from, |
|
|
bt::Uint32 & |
to, |
|
|
bt::Uint32 |
max_len |
|
) |
| |
|
overridevirtual |
Select a range of chunks to download from a webseeder.
- Parameters
-
from | First chunk of the range |
to | Last chunk of the range |
max_len | Maximum length of range |
- Returns
- true if everything is OK
Reimplemented from bt::ChunkSelector.
◆ setSequentialRange()
void bt::StreamingChunkSelector::setSequentialRange |
( |
bt::Uint32 |
from, |
|
|
bt::Uint32 |
to |
|
) |
| |
Set the range to be downloaded sequentially. The cursor will be initialized to the first of the range.
- Parameters
-
from | Start of range |
to | End of range |
The documentation for this class was generated from the following file: