Top Description Fields Constructors Methods
org.eclipse.jgit.internal.storage.dfs

pack-priv final Class DfsBlock

extends Object
Class Inheritance
Imports
java.io.IOException, java.nio.ByteBuffer, java.util.zip.CRC32, .DataFormatException, .Inflater, org.eclipse.jgit.internal.storage.pack.PackOutputStream

A cached slice of a BlockBasedFile.

Field Summary

Modifier and TypeField and Description
private final byte[]
pack-priv final long
pack-priv final long
pack-priv final DfsStreamKey

Constructor Summary

AccessConstructor and Description
pack-priv
DfsBlock(DfsStreamKey p, long pos, byte[] buf)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
check(Inflater inf, byte[] tmp, long pos, int cnt)

pack-priv boolean
contains(DfsStreamKey want, long pos)

pack-priv int
copy(long pos, byte[] dstbuf, int dstoff, int cnt)

pack-priv int
copy(int p, byte[] b, int o, int n)

pack-priv void
crc32(CRC32 out, long pos, int cnt)

pack-priv int
setInput(long pos, Inflater inf)

pack-priv int
size()

pack-priv void
write(PackOutputStream out, long pos, int cnt)

pack-priv ByteBuffer
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

blockback to summary
private final byte[] block
endback to summary
pack-priv final long end
startback to summary
pack-priv final long start
streamback to summary
pack-priv final DfsStreamKey stream

Constructor Detail

DfsBlockback to summary
pack-priv DfsBlock(DfsStreamKey p, long pos, byte[] buf)

Method Detail

checkback to summary
pack-priv void check(Inflater inf, byte[] tmp, long pos, int cnt) throws DataFormatException
containsback to summary
pack-priv boolean contains(DfsStreamKey want, long pos)
copyback to summary
pack-priv int copy(long pos, byte[] dstbuf, int dstoff, int cnt)
copyback to summary
pack-priv int copy(int p, byte[] b, int o, int n)
crc32back to summary
pack-priv void crc32(CRC32 out, long pos, int cnt)
setInputback to summary
pack-priv int setInput(long pos, Inflater inf) throws DataFormatException
sizeback to summary
pack-priv int size()
writeback to summary
pack-priv void write(PackOutputStream out, long pos, int cnt) throws IOException
zeroCopyByteBufferback to summary
pack-priv ByteBuffer zeroCopyByteBuffer(int n)