- All Known Implementing Classes:
PeerState
interface DataLoader
Callback used to fetch data.
Method Summary
Method Details
loadData
This is the callback that PeerConnectionOut calls to get the data from disk.- Parameters:
piece- index of the requested piecebegin- byte offset within the piece where the request startslength- number of bytes requested- Returns:
- bytes or null for errors