org.klomp.snark

## Interface DataLoader

- All Known Implementing Classes:
    PeerState

      interface DataLoader

  Callback used to fetch data

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `ByteArray` | `loadData(int piece, int begin, int length)` This is the callback that PeerConnectionOut calls to get the data from disk

- - ### Method Detail

    - #### loadData

          ByteArray loadData(int piece,
                             int begin,
                             int length)

      This is the callback that PeerConnectionOut calls to get the data from disk
      Returns:
        bytes or null for errors