Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
zstd_v02.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Yann Collet, Facebook, Inc.
3 * All rights reserved.
4 *
5 * This source code is licensed under both the BSD-style license (found in the
6 * LICENSE file in the root directory of this source tree) and the GPLv2 (found
7 * in the COPYING file in the root directory of this source tree).
8 * You may select, at your option, one of the above-listed licenses.
9 */
10
11#ifndef ZSTD_V02_H_4174539423
12#define ZSTD_V02_H_4174539423
13
14#if defined (__cplusplus)
15extern "C" {
16#endif
17
18/* *************************************
19* Includes
20***************************************/
21#include <stddef.h> /* size_t */
22
23
24/* *************************************
25* Simple one-step function
26***************************************/
35size_t ZSTDv02_decompress( void* dst, size_t maxOriginalSize,
36 const void* src, size_t compressedSize);
37
48void ZSTDv02_findFrameSizeInfoLegacy(const void *src, size_t srcSize,
49 size_t* cSize, unsigned long long* dBound);
50
54unsigned ZSTDv02_isError(size_t code);
55
56
57/* *************************************
58* Advanced functions
59***************************************/
62size_t ZSTDv02_freeDCtx(ZSTDv02_Dctx* dctx);
63
65 void* dst, size_t maxOriginalSize,
66 const void* src, size_t compressedSize);
67
68/* *************************************
69* Streaming functions
70***************************************/
72
74size_t ZSTDv02_decompressContinue(ZSTDv02_Dctx* dctx, void* dst, size_t maxDstSize, const void* src, size_t srcSize);
83/* *************************************
84* Prefix - version detection
85***************************************/
86#define ZSTDv02_magicNumber 0xFD2FB522 /* v0.2 */
87
88
89#if defined (__cplusplus)
90}
91#endif
92
93#endif /* ZSTD_V02_H_4174539423 */
char * dst
Definition lz4.h:833
char int srcSize
Definition lz4.h:806
char int compressedSize
Definition lz4.h:833
const char * src
Definition lz4.h:866
char int int maxDstSize
Definition lz4.h:833
Definition zstd_v02.c:2741
Definition inftrees.h:24
md5_starts & ctx
Definition zlib_interface.c:41
size_t ZSTDv02_nextSrcSizeToDecompress(ZSTDv02_Dctx *dctx)
Definition zstd_v02.c:3510
unsigned ZSTDv02_isError(size_t code)
Definition zstd_v02.c:3484
size_t ZSTDv02_freeDCtx(ZSTDv02_Dctx *dctx)
Definition zstd_v02.c:3500
ZSTDv02_Dctx * ZSTDv02_createDCtx(void)
Definition zstd_v02.c:3495
size_t ZSTDv02_decompress(void *dst, size_t maxOriginalSize, const void *src, size_t compressedSize)
Definition zstd_v02.c:3489
size_t ZSTDv02_decompressDCtx(void *ctx, void *dst, size_t maxOriginalSize, const void *src, size_t compressedSize)
void ZSTDv02_findFrameSizeInfoLegacy(const void *src, size_t srcSize, size_t *cSize, unsigned long long *dBound)
Definition zstd_v02.c:3335
size_t ZSTDv02_resetDCtx(ZSTDv02_Dctx *dctx)
Definition zstd_v02.c:3505
size_t ZSTDv02_decompressContinue(ZSTDv02_Dctx *dctx, void *dst, size_t maxDstSize, const void *src, size_t srcSize)
Definition zstd_v02.c:3515