File: store.h

package info (click to toggle)
iqtree 1.5.3%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 9,780 kB
  • ctags: 11,529
  • sloc: cpp: 96,162; ansic: 59,874; python: 242; sh: 189; makefile: 45
file content (27 lines) | stat: -rwxr-xr-x 1,035 bytes parent folder | download | duplicates (25)
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
#ifndef _STORE_H
#define _STORE_H

/* Numbers are stored with most significant bit first (left most) */

int store_long(unsigned long l, int nbytes, unsigned char *c);
int store_longarray(unsigned long *l, int n, int nbytes, unsigned char *c);
int load_long(unsigned char *c, int nbytes, unsigned long *l);
int load_longarray(unsigned char *c, int n, int nbytes, unsigned long *l);
int store_int(unsigned int l, int nbytes, unsigned char *c);
int store_intarray(unsigned int *l, int n, int nbytes, unsigned char *c);
int load_int(unsigned char *c, int nbytes, unsigned int *l);
int load_intarray(unsigned char *c, int n, int nbytes, unsigned int *l);


#ifdef _LONG_LONG

int store_longlong(unsigned long long l, int nbytes, unsigned char *c);
int store_longlongarray(unsigned long long *l, int n, int nbytes, unsigned char *c);
int load_longlong(unsigned char *c, int nbytes, unsigned long long *l);
int load_longlongarray(unsigned char *c, int n, int nbytes, unsigned long long *l);

#endif /* _LONG_LONG */


#endif /* _STORE_H */