Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
zstd_v01.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_V01_H_28739879432
12#define ZSTD_V01_H_28739879432
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 ZSTDv01_decompress( void* dst, size_t maxOriginalSize,
36 const void* src, size_t compressedSize);
37
48void ZSTDv01_findFrameSizeInfoLegacy(const void *src, size_t srcSize,
49 size_t* cSize, unsigned long long* dBound);
50
54unsigned ZSTDv01_isError(size_t code);
55
56
57/* *************************************
58* Advanced functions
59***************************************/
62size_t ZSTDv01_freeDCtx(ZSTDv01_Dctx* dctx);
63
64size_t ZSTDv01_decompressDCtx(void* ctx,
65 void* dst, size_t maxOriginalSize,
66 const void* src, size_t compressedSize);
67
68/* *************************************
69* Streaming functions
70***************************************/
72
74size_t ZSTDv01_decompressContinue(ZSTDv01_Dctx* dctx, void* dst, size_t maxDstSize, const void* src, size_t srcSize);
83/* *************************************
84* Prefix - version detection
85***************************************/
86#define ZSTDv01_magicNumber 0xFD2FB51E /* Big Endian version */
87#define ZSTDv01_magicNumberLE 0x1EB52FFD /* Little Endian version */
88
89
90#if defined (__cplusplus)
91}
92#endif
93
94#endif /* ZSTD_V01_H_28739879432 */
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_v01.c:1834
Definition inftrees.h:24
md5_starts & ctx
Definition zlib_interface.c:41
size_t ZSTDv01_nextSrcSizeToDecompress(ZSTDv01_Dctx *dctx)
Definition zstd_v01.c:2086
unsigned ZSTDv01_isError(size_t code)
Definition zstd_v01.c:1448
size_t ZSTDv01_decompressContinue(ZSTDv01_Dctx *dctx, void *dst, size_t maxDstSize, const void *src, size_t srcSize)
Definition zstd_v01.c:2091
ZSTDv01_Dctx * ZSTDv01_createDCtx(void)
Definition zstd_v01.c:2072
size_t ZSTDv01_decompressDCtx(void *ctx, void *dst, size_t maxOriginalSize, const void *src, size_t compressedSize)
Definition zstd_v01.c:1940
void ZSTDv01_findFrameSizeInfoLegacy(const void *src, size_t srcSize, size_t *cSize, unsigned long long *dBound)
Definition zstd_v01.c:2012
size_t ZSTDv01_resetDCtx(ZSTDv01_Dctx *dctx)
Definition zstd_v01.c:2063
size_t ZSTDv01_freeDCtx(ZSTDv01_Dctx *dctx)
Definition zstd_v01.c:2080
size_t ZSTDv01_decompress(void *dst, size_t maxOriginalSize, const void *src, size_t compressedSize)
Definition zstd_v01.c:1997