Home
last modified time | relevance | path

Searched refs:presetDict (Results 1 – 6 of 6) sorted by relevance

/external/lzma/Java/Tukaani/src/org/tukaani/xz/
DLZMAInputStream.java327 int dictSize, byte[] presetDict) in LZMAInputStream() argument
329 initialize(in, uncompSize, propsByte, dictSize, presetDict); in LZMAInputStream()
366 int dictSize, byte[] presetDict) in LZMAInputStream() argument
368 initialize(in, uncompSize, lc, lp, pb, dictSize, presetDict); in LZMAInputStream()
372 int dictSize, byte[] presetDict) in initialize() argument
397 initialize(in, uncompSize, lc, lp, pb, dictSize, presetDict); in initialize()
402 int dictSize, byte[] presetDict) in initialize() argument
418 lz = new LZDecoder(getDictSize(dictSize), presetDict); in initialize()
DLZMA2Options.java133 private byte[] presetDict = null; field in LZMA2Options
272 public void setPresetDict(byte[] presetDict) { in setPresetDict() argument
273 this.presetDict = presetDict; in setPresetDict()
280 return presetDict; in getPresetDict()
DLZMA2InputStream.java138 public LZMA2InputStream(InputStream in, int dictSize, byte[] presetDict) { in LZMA2InputStream() argument
145 this.lz = new LZDecoder(getDictSize(dictSize), presetDict); in LZMA2InputStream()
147 if (presetDict != null && presetDict.length > 0) in LZMA2InputStream()
DLZMA2OutputStream.java72 byte[] presetDict = options.getPresetDict(); in LZMA2OutputStream()
73 if (presetDict != null && presetDict.length > 0) { in LZMA2OutputStream()
74 lz.setPresetDict(dictSize, presetDict); in LZMA2OutputStream()
/external/lzma/Java/Tukaani/src/org/tukaani/xz/lz/
DLZDecoder.java26 public LZDecoder(int dictSize, byte[] presetDict) { in LZDecoder() argument
29 if (presetDict != null) { in LZDecoder()
30 pos = Math.min(presetDict.length, dictSize); in LZDecoder()
33 System.arraycopy(presetDict, presetDict.length - pos, buf, 0, pos); in LZDecoder()
DLZEncoder.java153 public void setPresetDict(int dictSize, byte[] presetDict) { in setPresetDict() argument
157 if (presetDict != null) { in setPresetDict()
160 int copySize = Math.min(presetDict.length, dictSize); in setPresetDict()
161 int offset = presetDict.length - copySize; in setPresetDict()
162 System.arraycopy(presetDict, offset, buf, 0, copySize); in setPresetDict()