Class TOTorrentFileHashTreeImpl.HashRequestImpl
java.lang.Object
com.biglybt.core.torrent.impl.TOTorrentFileHashTreeImpl.HashRequestImpl
- All Implemented Interfaces:
TOTorrentFileHashTree.HashRequest
- Enclosing class:
TOTorrentFileHashTreeImpl
private class TOTorrentFileHashTreeImpl.HashRequestImpl
extends Object
implements TOTorrentFileHashTree.HashRequest
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final intprivate final intprivate final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateHashRequestImpl(int _base_layer, int _offset, int _length, int _proof_layers) -
Method Summary
Modifier and TypeMethodDescriptionintintintintbyte[]
-
Field Details
-
base_layer
private final int base_layer -
offset
private final int offset -
length
private final int length -
proof_layers
private final int proof_layers
-
-
Constructor Details
-
HashRequestImpl
private HashRequestImpl(int _base_layer, int _offset, int _length, int _proof_layers)
-
-
Method Details
-
getRootHash
public byte[] getRootHash()- Specified by:
getRootHashin interfaceTOTorrentFileHashTree.HashRequest
-
getBaseLayer
public int getBaseLayer()- Specified by:
getBaseLayerin interfaceTOTorrentFileHashTree.HashRequest
-
getOffset
public int getOffset()- Specified by:
getOffsetin interfaceTOTorrentFileHashTree.HashRequest
-
getLength
public int getLength()- Specified by:
getLengthin interfaceTOTorrentFileHashTree.HashRequest
-
getProofLayers
public int getProofLayers()- Specified by:
getProofLayersin interfaceTOTorrentFileHashTree.HashRequest
-