File: uint.h

package info (click to toggle)
pcaputils 0.8-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 372 kB
  • sloc: ansic: 2,945; sh: 44; makefile: 38
file content (27 lines) | stat: -rw-r--r-- 605 bytes parent folder | download | duplicates (4)
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 RSEUTIL_UINT_H
#define RSEUTIL_UINT_H

#include <stdint.h>
#include <inttypes.h>

typedef int8_t i8;
typedef int16_t i16;
typedef int32_t i32;
typedef int64_t i64;

typedef uint8_t u8;
typedef uint16_t u16;
typedef uint32_t u32;
typedef uint64_t u64;

extern void u16_pack(char *, u16);
extern void u16_pack_big(char *, u16);
extern void u16_unpack(const char *, u16 *);
extern void u16_unpack_big(const char *, u16 *);

extern void u32_pack(char *, u32);
extern void u32_pack_big(char *, u32);
extern void u32_unpack(const char *, u32 *);
extern void u32_unpack_big(const char *, u32 *);

#endif