piecemapentry.java
来自「Azureus is a powerful, full-featured, cr」· Java 代码 · 共 46 行
JAVA
46 行
/*
* Created on Sep 1, 2003
*/
package org.gudy.azureus2.core3.disk.impl;
public class
PieceMapEntry
{
/**
* 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
*/
private DiskManagerFileInfoImpl _file;
private long _offset;
private int _length;
public
PieceMapEntry(
DiskManagerFileInfoImpl file,
long offset,
int length )
{
_file = file;
_offset = offset;
_length = length;
}
public DiskManagerFileInfoImpl getFile() {
return _file;
}
public void setFile(DiskManagerFileInfoImpl file) {
_file = file;
}
public long getOffset() {
return _offset;
}
public int getLength() {
return _length;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?