final class DfsBlock
extends java.lang.Object
BlockBasedFile
.Modifier and Type | Field and Description |
---|---|
private byte[] |
block |
(package private) long |
end |
(package private) long |
start |
(package private) DfsStreamKey |
stream |
Constructor and Description |
---|
DfsBlock(DfsStreamKey p,
long pos,
byte[] buf) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
check(java.util.zip.Inflater inf,
byte[] tmp,
long pos,
int cnt) |
(package private) boolean |
contains(DfsStreamKey want,
long pos) |
(package private) int |
copy(int p,
byte[] b,
int o,
int n) |
(package private) int |
copy(long pos,
byte[] dstbuf,
int dstoff,
int cnt) |
(package private) void |
crc32(java.util.zip.CRC32 out,
long pos,
int cnt) |
(package private) int |
setInput(long pos,
java.util.zip.Inflater inf) |
(package private) int |
size() |
(package private) void |
write(PackOutputStream out,
long pos,
int cnt) |
(package private) java.nio.ByteBuffer |
zeroCopyByteBuffer(int n) |
final DfsStreamKey stream
final long start
final long end
private final byte[] block
DfsBlock(DfsStreamKey p, long pos, byte[] buf)
int size()
java.nio.ByteBuffer zeroCopyByteBuffer(int n)
boolean contains(DfsStreamKey want, long pos)
int copy(long pos, byte[] dstbuf, int dstoff, int cnt)
int copy(int p, byte[] b, int o, int n)
int setInput(long pos, java.util.zip.Inflater inf) throws java.util.zip.DataFormatException
java.util.zip.DataFormatException
void crc32(java.util.zip.CRC32 out, long pos, int cnt)
void write(PackOutputStream out, long pos, int cnt) throws java.io.IOException
java.io.IOException
void check(java.util.zip.Inflater inf, byte[] tmp, long pos, int cnt) throws java.util.zip.DataFormatException
java.util.zip.DataFormatException