Path: blob/main/sys/contrib/zstd/lib/compress/zstd_compress_literals.h
48378 views
/*1* Copyright (c) Yann Collet, Facebook, Inc.2* All rights reserved.3*4* This source code is licensed under both the BSD-style license (found in the5* LICENSE file in the root directory of this source tree) and the GPLv2 (found6* in the COPYING file in the root directory of this source tree).7* You may select, at your option, one of the above-listed licenses.8*/910#ifndef ZSTD_COMPRESS_LITERALS_H11#define ZSTD_COMPRESS_LITERALS_H1213#include "zstd_compress_internal.h" /* ZSTD_hufCTables_t, ZSTD_minGain() */141516size_t ZSTD_noCompressLiterals (void* dst, size_t dstCapacity, const void* src, size_t srcSize);1718size_t ZSTD_compressRleLiteralsBlock (void* dst, size_t dstCapacity, const void* src, size_t srcSize);1920/* If suspectUncompressible then some sampling checks will be run to potentially skip huffman coding */21size_t ZSTD_compressLiterals (ZSTD_hufCTables_t const* prevHuf,22ZSTD_hufCTables_t* nextHuf,23ZSTD_strategy strategy, int disableLiteralCompression,24void* dst, size_t dstCapacity,25const void* src, size_t srcSize,26void* entropyWorkspace, size_t entropyWorkspaceSize,27const int bmi2,28unsigned suspectUncompressible);2930#endif /* ZSTD_COMPRESS_LITERALS_H */313233