public final class ZstdDecompressor extends IDecompressor
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
COMPRESSOR_NAME |
COMPRESSOR_ENABLE
构造器和说明 |
---|
ZstdDecompressor() |
ZstdDecompressor(int cacheSize) |
ZstdDecompressor(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 中
|
static int |
decompressBound(byte[] src,
int offset,
int length) |
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 ZstdDecompressor()
public ZstdDecompressor(int cacheSize)
public ZstdDecompressor(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 int decompressBound(byte[] src, int offset, int length)
public static edu.sysu.pmglab.container.VolumeByteStream decompress(byte[] src, int offset, int length) throws java.io.IOException
java.io.IOException