File: zstd_decompress.h

package info (click to toggle)
bowtie2 2.5.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 27,556 kB
  • sloc: cpp: 64,301; perl: 7,232; sh: 1,131; python: 993; makefile: 606; ansic: 122
file content (31 lines) | stat: -rw-r--r-- 748 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef _ZSTD_DECOMPRESS_
#define _ZSTD_DECOMPRESS_

#include <stdio.h>
#include <zstd.h>

typedef struct zstd_stream zstdStrm;

struct zstd_stream {
        int           back;
        size_t        o_len;
        size_t        o_pos;
        size_t        i_len;
        size_t        i_pos;
        void         *i_buf;
        void         *o_buf;
        ZSTD_DCtx    *strm;
        FILE         *fp;
};

zstdStrm *initDStream(zstdStrm *s);
zstdStrm *zstdOpen(const char *fn);
zstdStrm *zstdFdOpen(int fd);
int zstdDecompress(zstdStrm *s);
int zstdRead(zstdStrm *s, void *buf, size_t len);
int zstdUngetc(int c, zstdStrm *s);
int zstdGetc(zstdStrm *s);
int zstdClose(zstdStrm *s);
int zstdRewind(zstdStrm *s);

#endif // end _ZSTD_DECOMPRESS_