Class PieceListImpl
java.lang.Object
com.biglybt.core.disk.impl.piecemapper.impl.PieceListImpl
- All Implemented Interfaces:
DMPieceList
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PieceListImpl
get
(int index) int
getCumulativeLengthToPiece
(int index) private void
int
size()
-
Field Details
-
pieces
-
cumulativeLengths
private final int[] cumulativeLengths
-
-
Constructor Details
-
PieceListImpl
-
-
Method Details
-
convert
-
initializeCumulativeLengths
private void initializeCumulativeLengths() -
size
public int size()- Specified by:
size
in interfaceDMPieceList
-
get
- Specified by:
get
in interfaceDMPieceList
-
getCumulativeLengthToPiece
public int getCumulativeLengthToPiece(int index) - Specified by:
getCumulativeLengthToPiece
in interfaceDMPieceList
-