-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbele.h
52 lines (45 loc) · 1.17 KB
/
bele.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef _BELE_H_
#define _BELE_H_ 1
#if defined(__cplusplus)
extern "C" {
#endif
/*
* beget.c
*/
uint8_t be8getv(void*);
uint16_t be16getv(void*);
uint32_t be24getv(void*);
uint32_t be32getv(void*);
uint64_t be64getv(void*);
unsigned int be8get(void*, uint8_t*);
unsigned int be16get(void*, uint16_t*);
unsigned int be24get(void*, uint32_t*);
unsigned int be32get(void*, uint32_t*);
unsigned int be64get(void*, uint64_t*);
unsigned int be8put(void*, uint8_t);
unsigned int be16put(void*, uint16_t);
unsigned int be24put(void*, uint32_t);
unsigned int be32put(void*, uint32_t);
unsigned int be64put(void*, uint64_t);
/*
* leget.c
*/
uint8_t le8getv(void*);
uint16_t le16getv(void*);
uint32_t le24getv(void*);
uint32_t le32getv(void*);
uint64_t le64getv(void*);
unsigned int le8get(void*, uint8_t*);
unsigned int le16get(void*, uint16_t*);
unsigned int le24get(void*, uint32_t*);
unsigned int le32get(void*, uint32_t*);
unsigned int le64get(void*, uint64_t*);
unsigned int le8put(void*, uint8_t);
unsigned int le16put(void*, uint16_t);
unsigned int le24put(void*, uint32_t);
unsigned int le32put(void*, uint32_t);
unsigned int le64put(void*, uint64_t);
#if defined(__cplusplus)
}
#endif
#endif