public interface ChunkVerifier
Modifier and Type | Method and Description |
---|---|
boolean |
verify(ChunkDescriptor chunk)
Conducts verification of the provided chunk.
|
boolean |
verify(List<ChunkDescriptor> chunks,
LocalBitfield bitfield)
Conducts verification of the provided list of chunks and updates bitfield with the results.
|
boolean |
verifyIfPresent(ChunkDescriptor chunk) |
boolean verify(List<ChunkDescriptor> chunks, LocalBitfield bitfield)
chunks
- List of chunksbitfield
- the local bitfield for the torrentboolean verify(ChunkDescriptor chunk)
chunk
- Chunkboolean verifyIfPresent(ChunkDescriptor chunk)
Copyright © 2016–2021. All rights reserved.