fehQlibs 26
Qlibs
Loading...
Searching...
No Matches
uint_t.h
Go to the documentation of this file.
1#include <stdint.h>
2
11#ifndef UINT8_H
12#define UINT8_H
13
14#ifdef HAS_UINT8_H
15typedef uint8_t uint8;
16#else
17typedef unsigned char uint8;
18#endif
19
20extern void uint8_pack(char *,uint8);
21extern void uint8_pack_big(char *,uint8);
22extern void uint8_unpack(char *,uint8 *);
23extern void uint8_unpack_big(char *,uint8 *);
24#endif
25
26#ifndef UINT16_H
27#define UINT16_H
28
29typedef uint16_t uint16;
30
31extern void uint16_pack(char [16],uint16);
32extern void uint16_pack_big(char [16],uint16);
33extern void uint16_unpack(char [16],uint16 *);
34extern void uint16_unpack_big(char [16],uint16 *);
35#endif
36
37#ifndef UINT32_H
38#define UINT32_H
39
40typedef uint32_t uint32;
41
42extern void uint32_pack(char *,uint32);
43extern void uint32_pack_big(char *,uint32);
44extern void uint32_unpack(char *,uint32 *);
45extern void uint32_unpack_big(char *,uint32 *);
46#endif
47
48#ifndef UINT64_H
49#define UINT64_H
50
51#ifdef HAS_UINT64_H
52typedef uint64_t uint64;
53#else
54typedef unsigned long long uint64;
55#endif
56
57extern void uint64_pack(char *,uint64);
58extern void uint64_pack_big(char *,uint64);
59extern void uint64_unpack(char *,uint64 *);
60extern void uint64_unpack_big(char *,uint64 *);
61#endif
62
63#ifndef UINT128_H
64#define UINT128_H
65
66/* uint128 used for native IPv6 address presentation */
67
69{
70 uint64_t hi; /* routing area */
71 uint64_t lo; /* local area */
72};
73
74typedef struct uint128_t uint128;
75
76extern void uint128_pack(char *,uint128);
77extern void uint128_pack_big(char *,uint128);
78extern void uint128_unpack(char *,uint128 *);
79extern void uint128_unpack_big(char *,uint128 *);
80#endif
void uint16_pack(char[16], uint16)
void uint16_pack_big(char[16], uint16)
void uint32_pack(char *, uint32)
void uint128_pack_big(char *, uint128)
unsigned long long uint64
Definition: uint_t.h:54
void uint8_pack_big(char *, uint8)
void uint128_unpack_big(char *, uint128 *)
void uint64_unpack_big(char *, uint64 *)
void uint128_pack(char *, uint128)
void uint32_unpack(char *, uint32 *)
void uint32_pack_big(char *, uint32)
void uint8_pack(char *, uint8)
void uint64_pack(char *, uint64)
void uint64_pack_big(char *, uint64)
void uint16_unpack(char[16], uint16 *)
void uint8_unpack(char *, uint8 *)
void uint128_unpack(char *, uint128 *)
uint16_t uint16
Definition: uint_t.h:29
uint32_t uint32
Definition: uint_t.h:40
void uint32_unpack_big(char *, uint32 *)
void uint8_unpack_big(char *, uint8 *)
unsigned char uint8
Definition: uint_t.h:17
void uint64_unpack(char *, uint64 *)
void uint16_unpack_big(char[16], uint16 *)
uint64_t hi
Definition: uint_t.h:70
uint64_t lo
Definition: uint_t.h:71