Lines Matching refs:prefix_len
342 size_t prefix_len, in decompress_startswith_xz() argument
362 if (!(greedy_realloc(buffer, ALIGN_8(prefix_len + 1), 1))) in decompress_startswith_xz()
379 if (allocated - s.avail_out >= prefix_len + 1) in decompress_startswith_xz()
380 return memcmp(*buffer, prefix, prefix_len) == 0 && in decompress_startswith_xz()
381 ((const uint8_t*) *buffer)[prefix_len] == extra; in decompress_startswith_xz()
405 size_t prefix_len, in decompress_startswith_lz4() argument
423 if (!(greedy_realloc(buffer, ALIGN_8(prefix_len + 1), 1))) in decompress_startswith_lz4()
431 prefix_len + 1, in decompress_startswith_lz4()
438 if (r < 0 || (size_t) r < prefix_len + 1) { in decompress_startswith_lz4()
458 if (size < prefix_len + 1) in decompress_startswith_lz4()
462 return memcmp(*buffer, prefix, prefix_len) == 0 && in decompress_startswith_lz4()
463 ((const uint8_t*) *buffer)[prefix_len] == extra; in decompress_startswith_lz4()
474 size_t prefix_len, in decompress_startswith_zstd() argument
486 if (size < prefix_len + 1) in decompress_startswith_zstd()
493 if (!(greedy_realloc(buffer, MAX(ZSTD_DStreamOutSize(), prefix_len + 1), 1))) in decompress_startswith_zstd()
511 assert(output.pos >= prefix_len + 1); in decompress_startswith_zstd()
513 return memcmp(*buffer, prefix, prefix_len) == 0 && in decompress_startswith_zstd()
514 ((const uint8_t*) *buffer)[prefix_len] == extra; in decompress_startswith_zstd()
526 size_t prefix_len, in decompress_startswith() argument
533 prefix, prefix_len, in decompress_startswith()
540 prefix, prefix_len, in decompress_startswith()
546 prefix, prefix_len, in decompress_startswith()