Home
last modified time | relevance | path

Searched refs:compressed_buffer (Results 1 – 9 of 9) sorted by relevance

/external/libtextclassifier/native/utils/zlib/
Dzlib.cc66 const CompressedBuffer* compressed_buffer, std::string* out) { in MaybeDecompress() argument
67 if (!compressed_buffer) { in MaybeDecompress()
70 return Decompress(compressed_buffer->buffer()->Data(), in MaybeDecompress()
71 compressed_buffer->buffer()->size(), in MaybeDecompress()
72 compressed_buffer->uncompressed_size(), out); in MaybeDecompress()
76 const CompressedBufferT* compressed_buffer, std::string* out) { in MaybeDecompress() argument
77 if (!compressed_buffer) { in MaybeDecompress()
80 return Decompress(compressed_buffer->buffer.data(), in MaybeDecompress()
81 compressed_buffer->buffer.size(), in MaybeDecompress()
82 compressed_buffer->uncompressed_size, out); in MaybeDecompress()
[all …]
Dzlib.h37 bool MaybeDecompress(const CompressedBuffer* compressed_buffer,
39 bool MaybeDecompress(const CompressedBufferT* compressed_buffer,
43 const CompressedBuffer* compressed_buffer, std::string* out);
46 const CompressedBuffer* compressed_buffer, std::string* out);
/external/squashfs-tools/squashfs-tools/
Dprocess_fragments.c104 struct file_buffer *buffer, *compressed_buffer; in get_fragment() local
168 compressed_buffer = cache_lookup(fwriter_buffer, index); in get_fragment()
181 if(compressed_buffer) in get_fragment()
182 data = compressed_buffer->data; in get_fragment()
198 } else if(compressed_buffer) in get_fragment()
199 memcpy(buffer->data, compressed_buffer->data, size); in get_fragment()
210 cache_block_put(compressed_buffer); in get_fragment()
Dmksquashfs.c1458 struct file_buffer *buffer, *compressed_buffer; in get_fragment() local
1526 compressed_buffer = cache_lookup(fwriter_buffer, index); in get_fragment()
1539 if(compressed_buffer) in get_fragment()
1540 data = compressed_buffer->data; in get_fragment()
1555 } else if(compressed_buffer) in get_fragment()
1556 memcpy(buffer->data, compressed_buffer->data, size); in get_fragment()
1567 cache_block_put(compressed_buffer); in get_fragment()
/external/libtextclassifier/native/actions/
Dzlib-utils.cc158 const CompressedBuffer* compressed_buffer, in GetUncompressedString() argument
160 if (uncompressed_buffer == nullptr && compressed_buffer == nullptr) { in GetUncompressedString()
166 uncompressed_buffer, compressed_buffer, out); in GetUncompressedString()
Dzlib-utils.h38 const CompressedBuffer* compressed_buffer,
/external/oss-fuzz/projects/lzo/
Dall_lzo_compress.cc202 std::unique_ptr<uint8_t[]> compressed_buffer( in FuzzLzoAlgorithm() local
207 compressed_buffer.get(), &compressed_size, in FuzzLzoAlgorithm()
215 if (algorithm.decompress_fn(compressed_buffer.get(), compressed_size, in FuzzLzoAlgorithm()
/external/tensorflow/tensorflow/lite/python/
Dinterpreter_test.py266 compressed_buffer = interpreter.get_tensor(0)
268 self.assertEqual(len(compressed_buffer), 12)
270 self.assertAllEqual(compressed_buffer, sparse_value)
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_rematerialization.cc1039 Buffer& compressed_buffer = in AddCompressInstructions() local
1045 compressed_item->buffers_output = {compressed_buffer.id}; in AddCompressInstructions()
1046 compressed_item->buffers_defined.push_back(compressed_buffer.id); in AddCompressInstructions()