Home
last modified time | relevance | path

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

/external/xz-java/src/org/tukaani/xz/
DLZMAInputStream.java407 int dictSize, byte[] presetDict) in LZMAInputStream() argument
409 initialize(in, uncompSize, propsByte, dictSize, presetDict, in LZMAInputStream()
454 int dictSize, byte[] presetDict, in LZMAInputStream() argument
457 initialize(in, uncompSize, propsByte, dictSize, presetDict, in LZMAInputStream()
495 int dictSize, byte[] presetDict) in LZMAInputStream() argument
497 initialize(in, uncompSize, lc, lp, pb, dictSize, presetDict, in LZMAInputStream()
543 int dictSize, byte[] presetDict, in LZMAInputStream() argument
546 initialize(in, uncompSize, lc, lp, pb, dictSize, presetDict, in LZMAInputStream()
551 int dictSize, byte[] presetDict, in initialize() argument
577 initialize(in, uncompSize, lc, lp, pb, dictSize, presetDict, in initialize()
[all …]
DLZMA2InputStream.java138 public LZMA2InputStream(InputStream in, int dictSize, byte[] presetDict) { in LZMA2InputStream() argument
139 this(in, dictSize, presetDict, ArrayCache.getDefaultCache()); in LZMA2InputStream()
163 LZMA2InputStream(InputStream in, int dictSize, byte[] presetDict, in LZMA2InputStream() argument
173 this.lz = new LZDecoder(getDictSize(dictSize), presetDict, arrayCache); in LZMA2InputStream()
175 if (presetDict != null && presetDict.length > 0) in LZMA2InputStream()
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()
568 return new LZMA2InputStream(in, dictSize, presetDict, arrayCache); in getInputStream()
DLZMAOutputStream.java74 byte[] presetDict = options.getPresetDict(); in LZMAOutputStream()
75 if (presetDict != null && presetDict.length > 0) { in LZMAOutputStream()
81 lz.setPresetDict(dictSize, presetDict); in LZMAOutputStream()
DLZMA2OutputStream.java77 byte[] presetDict = options.getPresetDict(); in LZMA2OutputStream()
78 if (presetDict != null && presetDict.length > 0) { in LZMA2OutputStream()
79 lz.setPresetDict(dictSize, presetDict); in LZMA2OutputStream()
/external/xz-java/src/org/tukaani/xz/lz/
DLZDecoder.java28 public LZDecoder(int dictSize, byte[] presetDict, ArrayCache arrayCache) { in LZDecoder() argument
32 if (presetDict != null) { in LZDecoder()
33 pos = Math.min(presetDict.length, dictSize); in LZDecoder()
36 System.arraycopy(presetDict, presetDict.length - pos, buf, 0, pos); in LZDecoder()
DLZEncoder.java162 public void setPresetDict(int dictSize, byte[] presetDict) { in setPresetDict() argument
166 if (presetDict != null) { in setPresetDict()
169 int copySize = Math.min(presetDict.length, dictSize); in setPresetDict()
170 int offset = presetDict.length - copySize; in setPresetDict()
171 System.arraycopy(presetDict, offset, buf, 0, copySize); in setPresetDict()