Lines Matching full:chunk
35 * data layout: uint32 total decompressed length, (chunks: uint32 chunk
36 * decompressed size, uint32 chunk compressed size, chunk data)+. 0 chunk
37 * compressed size means chunk is not compressed
69 byte[] chunk = new byte[256 * 1024]; // chunk size is arbitrary
70 final ByteBuffer out = ByteBuffer.allocate(4 + (inSize + chunk.length - 1)
71 / chunk.length * (chunk.length + 4 * 2));
74 for (int i = 0; i < inSize; i += chunk.length) {
75 int chunkIn = chunk.length;
80 .lzf_compress(inChunk, chunkIn, chunk, chunk.length);
83 if (chunkOut == 0) // compressed bigger than chunk (uncompressed)
86 out.put(chunk, 0, chunkOut);