Home
last modified time | relevance | path

Searched refs:arrayCache (Results 1 – 25 of 40) sorted by relevance

12

/external/xz-java/src/org/tukaani/xz/
DResettableArrayCache.java22 private final ArrayCache arrayCache; field in ResettableArrayCache
31 public ResettableArrayCache(ArrayCache arrayCache) { in ResettableArrayCache() argument
32 this.arrayCache = arrayCache; in ResettableArrayCache()
37 if (arrayCache == ArrayCache.getDummyCache()) { in ResettableArrayCache()
47 byte[] array = arrayCache.getByteArray(size, fillWithZeros); in getByteArray()
68 arrayCache.putArray(array); in putArray()
73 int[] array = arrayCache.getIntArray(size, fillWithZeros); in getIntArray()
92 arrayCache.putArray(array); in putArray()
107 arrayCache.putArray(byteArrays.get(i)); in reset()
114 arrayCache.putArray(intArrays.get(i)); in reset()
DLZMAInputStream.java50 private ArrayCache arrayCache; field in LZMAInputStream
217 public LZMAInputStream(InputStream in, ArrayCache arrayCache) in LZMAInputStream() argument
219 this(in, -1, arrayCache); in LZMAInputStream()
295 ArrayCache arrayCache) throws IOException { in LZMAInputStream() argument
319 initialize(in, uncompSize, propsByte, dictSize, null, arrayCache); in LZMAInputStream()
455 ArrayCache arrayCache) in LZMAInputStream() argument
458 arrayCache); in LZMAInputStream()
544 ArrayCache arrayCache) in LZMAInputStream() argument
547 arrayCache); in LZMAInputStream()
552 ArrayCache arrayCache) in initialize() argument
[all …]
DXZInputStream.java64 private final ArrayCache arrayCache; field in XZInputStream
134 public XZInputStream(InputStream in, ArrayCache arrayCache) in XZInputStream() argument
136 this(in, -1, arrayCache); in XZInputStream()
207 ArrayCache arrayCache) throws IOException { in XZInputStream() argument
208 this(in, memoryLimit, true, arrayCache); in XZInputStream()
306 ArrayCache arrayCache) throws IOException { in XZInputStream() argument
307 this.arrayCache = arrayCache; in XZInputStream()
312 arrayCache); in XZInputStream()
447 arrayCache); in prepareNextStream()
DSingleXZInputStream.java44 private final ArrayCache arrayCache; field in SingleXZInputStream
127 public SingleXZInputStream(InputStream in, ArrayCache arrayCache) in SingleXZInputStream() argument
129 this(in, -1, arrayCache); in SingleXZInputStream()
203 ArrayCache arrayCache) throws IOException { in SingleXZInputStream() argument
204 this(in, memoryLimit, true, arrayCache); in SingleXZInputStream()
305 boolean verifyCheck, ArrayCache arrayCache) in SingleXZInputStream() argument
307 this(in, memoryLimit, verifyCheck, readStreamHeader(in), arrayCache); in SingleXZInputStream()
311 byte[] streamHeader, ArrayCache arrayCache) in SingleXZInputStream() argument
313 this.arrayCache = arrayCache; in SingleXZInputStream()
422 arrayCache); in read()
DLZMAOutputStream.java27 private final ArrayCache arrayCache; field in LZMAOutputStream
46 ArrayCache arrayCache) in LZMAOutputStream() argument
59 this.arrayCache = arrayCache; in LZMAOutputStream()
70 arrayCache); in LZMAOutputStream()
156 long inputSize, ArrayCache arrayCache) in LZMAOutputStream() argument
158 this(out, options, true, inputSize == -1, inputSize, arrayCache); in LZMAOutputStream()
208 boolean useEndMarker, ArrayCache arrayCache) in LZMAOutputStream() argument
210 this(out, options, false, useEndMarker, -1, arrayCache); in LZMAOutputStream()
303 lzma.putArraysToCache(arrayCache); in finish()
DXZOutputStream.java55 private final ArrayCache arrayCache; field in XZOutputStream
121 ArrayCache arrayCache) in XZOutputStream() argument
123 this(out, filterOptions, XZ.CHECK_CRC64, arrayCache); in XZOutputStream()
177 int checkType, ArrayCache arrayCache) in XZOutputStream() argument
180 arrayCache); in XZOutputStream()
226 ArrayCache arrayCache) in XZOutputStream() argument
228 this(out, filterOptions, XZ.CHECK_CRC64, arrayCache); in XZOutputStream()
277 int checkType, ArrayCache arrayCache) in XZOutputStream() argument
279 this.arrayCache = arrayCache; in XZOutputStream()
398 arrayCache); in write()
DLZMA2InputStream.java46 private final ArrayCache arrayCache; field in LZMA2InputStream
164 ArrayCache arrayCache) { in LZMA2InputStream() argument
170 this.arrayCache = arrayCache; in LZMA2InputStream()
172 this.rc = new RangeDecoderFromBuffer(COMPRESSED_SIZE_MAX, arrayCache); in LZMA2InputStream()
173 this.lz = new LZDecoder(getDictSize(dictSize), presetDict, arrayCache); in LZMA2InputStream()
375 lz.putArraysToCache(arrayCache); in putArraysToCache()
378 rc.putArraysToCache(arrayCache); in putArraysToCache()
DUncompressedLZMA2OutputStream.java16 private final ArrayCache arrayCache; field in UncompressedLZMA2OutputStream
36 ArrayCache arrayCache) { in UncompressedLZMA2OutputStream() argument
46 this.arrayCache = arrayCache; in UncompressedLZMA2OutputStream()
47 uncompBuf = arrayCache.getByteArray( in UncompressedLZMA2OutputStream()
109 arrayCache.putArray(uncompBuf); in writeEndMarker()
DLZMA2OutputStream.java22 private final ArrayCache arrayCache; field in LZMA2OutputStream
57 ArrayCache arrayCache) { in LZMA2OutputStream() argument
61 this.arrayCache = arrayCache; in LZMA2OutputStream()
64 rc = new RangeEncoderToBuffer(COMPRESSED_SIZE_MAX, arrayCache); in LZMA2OutputStream()
73 this.arrayCache); in LZMA2OutputStream()
207 lzma.putArraysToCache(arrayCache); in writeEndMarker()
210 rc.putArraysToCache(arrayCache); in writeEndMarker()
DArrayCache.java104 public static void setDefaultCache(ArrayCache arrayCache) { in setDefaultCache() argument
105 if (arrayCache == null) in setDefaultCache()
109 defaultCache = arrayCache; in setDefaultCache()
DSeekableXZInputStream.java80 private final ArrayCache arrayCache; field in SeekableXZInputStream
250 public SeekableXZInputStream(SeekableInputStream in, ArrayCache arrayCache) in SeekableXZInputStream() argument
252 this(in, -1, arrayCache); in SeekableXZInputStream()
335 ArrayCache arrayCache) in SeekableXZInputStream() argument
337 this(in, memoryLimit, true, arrayCache); in SeekableXZInputStream()
448 boolean verifyCheck, ArrayCache arrayCache) in SeekableXZInputStream() argument
450 this.arrayCache = arrayCache; in SeekableXZInputStream()
1139 arrayCache);
DLZMA2Options.java533 ArrayCache arrayCache) { in getOutputStream() argument
535 return new UncompressedLZMA2OutputStream(out, arrayCache); in getOutputStream()
537 return new LZMA2OutputStream(out, this, arrayCache); in getOutputStream()
566 public InputStream getInputStream(InputStream in, ArrayCache arrayCache) in getInputStream() argument
568 return new LZMA2InputStream(in, dictSize, presetDict, arrayCache); in getInputStream()
DDeltaEncoder.java34 ArrayCache arrayCache) { in getOutputStream() argument
35 return options.getOutputStream(out, arrayCache); in getOutputStream()
DLZMA2Decoder.java32 public InputStream getInputStream(InputStream in, ArrayCache arrayCache) { in getInputStream() argument
33 return new LZMA2InputStream(in, dictSize, null, arrayCache); in getInputStream()
DX86Options.java26 ArrayCache arrayCache) { in getOutputStream() argument
30 public InputStream getInputStream(InputStream in, ArrayCache arrayCache) { in getInputStream() argument
DARMThumbOptions.java26 ArrayCache arrayCache) { in getOutputStream() argument
30 public InputStream getInputStream(InputStream in, ArrayCache arrayCache) { in getInputStream() argument
DIA64Options.java26 ArrayCache arrayCache) { in getOutputStream() argument
30 public InputStream getInputStream(InputStream in, ArrayCache arrayCache) { in getInputStream() argument
DARMOptions.java26 ArrayCache arrayCache) { in getOutputStream() argument
30 public InputStream getInputStream(InputStream in, ArrayCache arrayCache) { in getInputStream() argument
/external/xz-java/src/org/tukaani/xz/lz/
DHash234.java53 Hash234(int dictSize, ArrayCache arrayCache) { in Hash234() argument
54 hash2Table = arrayCache.getIntArray(HASH_2_SIZE, true); in Hash234()
55 hash3Table = arrayCache.getIntArray(HASH_3_SIZE, true); in Hash234()
58 hash4Table = arrayCache.getIntArray(hash4Size, true); in Hash234()
62 void putArraysToCache(ArrayCache arrayCache) { in putArraysToCache() argument
63 arrayCache.putArray(hash4Table); in putArraysToCache()
64 arrayCache.putArray(hash3Table); in putArraysToCache()
65 arrayCache.putArray(hash2Table); in putArraysToCache()
DHC4.java38 ArrayCache arrayCache) { in HC4() argument
40 arrayCache); in HC4()
42 hash = new Hash234(dictSize, arrayCache); in HC4()
46 chain = arrayCache.getIntArray(cyclicSize, false); in HC4()
60 public void putArraysToCache(ArrayCache arrayCache) { in putArraysToCache() argument
61 arrayCache.putArray(chain); in putArraysToCache()
62 hash.putArraysToCache(arrayCache); in putArraysToCache()
63 super.putArraysToCache(arrayCache); in putArraysToCache()
DBT4.java31 ArrayCache arrayCache) { in BT4() argument
33 arrayCache); in BT4()
38 hash = new Hash234(dictSize, arrayCache); in BT4()
39 tree = arrayCache.getIntArray(cyclicSize * 2, false); in BT4()
49 public void putArraysToCache(ArrayCache arrayCache) { in putArraysToCache() argument
50 arrayCache.putArray(tree); in putArraysToCache()
51 hash.putArraysToCache(arrayCache); in putArraysToCache()
52 super.putArraysToCache(arrayCache); in putArraysToCache()
DLZEncoder.java123 ArrayCache arrayCache) { in getInstance() argument
127 niceLen, matchLenMax, depthLimit, arrayCache); in getInstance()
131 niceLen, matchLenMax, depthLimit, arrayCache); in getInstance()
141 int niceLen, int matchLenMax, ArrayCache arrayCache) { in LZEncoder() argument
144 buf = arrayCache.getByteArray(bufSize, false); in LZEncoder()
153 public void putArraysToCache(ArrayCache arrayCache) { in putArraysToCache() argument
154 arrayCache.putArray(buf); in putArraysToCache()
DLZDecoder.java28 public LZDecoder(int dictSize, byte[] presetDict, ArrayCache arrayCache) { in LZDecoder() argument
30 buf = arrayCache.getByteArray(bufSize, false); in LZDecoder()
40 public void putArraysToCache(ArrayCache arrayCache) { in putArraysToCache() argument
41 arrayCache.putArray(buf); in putArraysToCache()
/external/xz-java/src/org/tukaani/xz/rangecoder/
DRangeEncoderToBuffer.java21 public RangeEncoderToBuffer(int bufSize, ArrayCache arrayCache) { in RangeEncoderToBuffer() argument
22 buf = arrayCache.getByteArray(bufSize, false); in RangeEncoderToBuffer()
26 public void putArraysToCache(ArrayCache arrayCache) { in putArraysToCache() argument
27 arrayCache.putArray(buf); in putArraysToCache()
DRangeDecoderFromBuffer.java24 public RangeDecoderFromBuffer(int inputSizeMax, ArrayCache arrayCache) { in RangeDecoderFromBuffer() argument
27 buf = arrayCache.getByteArray(inputSizeMax - INIT_SIZE, false); in RangeDecoderFromBuffer()
31 public void putArraysToCache(ArrayCache arrayCache) { in putArraysToCache() argument
32 arrayCache.putArray(buf); in putArraysToCache()

12