Lines Matching defs:buffer
243 void **buffer, size_t *buffer_size,
257 assert(buffer);
260 assert(*buffer_size == 0 || *buffer);
266 if (!(greedy_realloc(buffer, buffer_size, ALIGN_8(prefix_len + 1), 1)))
272 s.next_out = *buffer;
282 return memcmp(*buffer, prefix, prefix_len) == 0 &&
283 ((const uint8_t*) *buffer)[prefix_len] == extra;
290 if (!(greedy_realloc(buffer, buffer_size, *buffer_size * 2, 1)))
293 s.next_out = *buffer + *buffer_size - s.avail_out;
302 void **buffer, size_t *buffer_size,
315 assert(buffer);
318 assert(*buffer_size == 0 || *buffer);
323 if (!(greedy_realloc(buffer, buffer_size, ALIGN_8(prefix_len + 1), 1)))
326 r = LZ4_decompress_safe_partial(src + 8, *buffer, src_size - 8,
334 r = decompress_blob_lz4(src, src_size, buffer, buffer_size, &size, 0);
340 return memcmp(*buffer, prefix, prefix_len) == 0 &&
341 ((const uint8_t*) *buffer)[prefix_len] == extra;
352 void **buffer, size_t *buffer_size,
357 buffer, buffer_size,
362 buffer, buffer_size,