forked from divonlan/genozip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
squeeze_vcf.h
25 lines (19 loc) · 922 Bytes
/
squeeze_vcf.h
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
// ------------------------------------------------------------------
// squeeze_vcf.h
// Copyright (C) 2019-2020 Divon Lan <[email protected]>
// Please see terms and conditions in the files LICENSE.non-commercial.txt and LICENSE.commercial.txt
#ifndef SQUEEZE_INCLUDED
#define SQUEEZE_INCLUDED
#include "genozip.h"
extern unsigned squeeze_len (unsigned int len);
extern void squeeze (VBlockVCFP vb,
uint8_t *dst, // memory should be pre-allocated by caller
uint16_t *squeezed_checksum,
const unsigned *src,
unsigned src_len);
extern void unsqueeze (VBlockVCFP vb,
unsigned *normal, // memory should be pre-allocated by caller
const uint8_t *squeezed,
uint16_t squeezed_checksum,
unsigned normal_len);
#endif