Class PieceMapEntryImpl
- java.lang.Object
-
- com.biglybt.core.disk.impl.piecemapper.impl.PieceMapEntryImpl
-
- All Implemented Interfaces:
DMPieceMapEntry
public class PieceMapEntryImpl extends java.lang.Object implements DMPieceMapEntry
-
-
Field Summary
Fields Modifier and Type Field Description private DiskManagerFileInfo
_file
This class denotes the mapping of a piece onto a file.private int
_length
private long
_offset
-
Constructor Summary
Constructors Constructor Description PieceMapEntryImpl(DiskManagerFileInfo file, long offset, int length)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DiskManagerFileInfo
getFile()
int
getLength()
long
getOffset()
-
-
-
Field Detail
-
_file
private final DiskManagerFileInfo _file
This class denotes the mapping of a piece onto a file. Typically a piece can span multiple files. Each overlapping segment has on of these entries created for it. It identifies the file, the offset within the file, and the length of the chunk
-
_offset
private final long _offset
-
_length
private final int _length
-
-
Constructor Detail
-
PieceMapEntryImpl
public PieceMapEntryImpl(DiskManagerFileInfo file, long offset, int length)
-
-
Method Detail
-
getFile
public DiskManagerFileInfo getFile()
- Specified by:
getFile
in interfaceDMPieceMapEntry
-
getOffset
public long getOffset()
- Specified by:
getOffset
in interfaceDMPieceMapEntry
-
getLength
public int getLength()
- Specified by:
getLength
in interfaceDMPieceMapEntry
-
-