Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright (c) Yann Collet, Facebook, Inc.
0003  * All rights reserved.
0004  *
0005  * This source code is licensed under both the BSD-style license (found in the
0006  * LICENSE file in the root directory of this source tree) and the GPLv2 (found
0007  * in the COPYING file in the root directory of this source tree).
0008  * You may select, at your option, one of the above-listed licenses.
0009  */
0010 
0011 #ifndef ZSTD_COMPRESS_LITERALS_H
0012 #define ZSTD_COMPRESS_LITERALS_H
0013 
0014 #include "zstd_compress_internal.h" /* ZSTD_hufCTables_t, ZSTD_minGain() */
0015 
0016 
0017 size_t ZSTD_noCompressLiterals (void* dst, size_t dstCapacity, const void* src, size_t srcSize);
0018 
0019 size_t ZSTD_compressRleLiteralsBlock (void* dst, size_t dstCapacity, const void* src, size_t srcSize);
0020 
0021 size_t ZSTD_compressLiterals (ZSTD_hufCTables_t const* prevHuf,
0022                               ZSTD_hufCTables_t* nextHuf,
0023                               ZSTD_strategy strategy, int disableLiteralCompression,
0024                               void* dst, size_t dstCapacity,
0025                         const void* src, size_t srcSize,
0026                               void* entropyWorkspace, size_t entropyWorkspaceSize,
0027                         const int bmi2);
0028 
0029 #endif /* ZSTD_COMPRESS_LITERALS_H */