public final class LZ4Decompressor extends IDecompressor
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
COMPRESSOR_NAME |
static net.jpountz.lz4.LZ4DecompressorWithLength |
decompressor |
COMPRESSOR_ENABLE
构造器和说明 |
---|
LZ4Decompressor() |
LZ4Decompressor(int cacheSize) |
LZ4Decompressor(edu.sysu.pmglab.container.VolumeByteStream cache) |
限定符和类型 | 方法和说明 |
---|---|
void |
close()
关闭压缩器方法
|
static edu.sysu.pmglab.container.VolumeByteStream |
decompress(byte[] src,
int offset,
int length) |
int |
decompress(byte[] src,
int srcOffset,
int srcLength,
byte[] dst,
int dstOffset,
int dstLength)
解压缩方法, 解压 src 数据, 并写入到 dst 中
|
int |
getDecompressBound(byte[] src,
int offset,
int length)
预估解压大小
|
decompress, decompress, decompress, decompress, decompress, getCache, getCompressorIndex, getCompressorName, getInstance, getInstance, getInstance, reset
public static final java.lang.String COMPRESSOR_NAME
public static final net.jpountz.lz4.LZ4DecompressorWithLength decompressor
public LZ4Decompressor()
public LZ4Decompressor(int cacheSize)
public LZ4Decompressor(edu.sysu.pmglab.container.VolumeByteStream cache)
public int getDecompressBound(byte[] src, int offset, int length)
IDecompressor
getDecompressBound
在类中 IDecompressor
src
- 源数据offset
- 偏移量length
- 输入数据长度public int decompress(byte[] src, int srcOffset, int srcLength, byte[] dst, int dstOffset, int dstLength)
IDecompressor
decompress
在类中 IDecompressor
src
- 源数据srcOffset
- 源数据偏移量srcLength
- 源数据传入长度dst
- 目标容器dstOffset
- 目标容器偏移量dstLength
- 目标容器可用长度public void close()
IDecompressor
close
在接口中 java.lang.AutoCloseable
close
在类中 IDecompressor
public static edu.sysu.pmglab.container.VolumeByteStream decompress(byte[] src, int offset, int length)