-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtype.h
More file actions
27 lines (24 loc) · 690 Bytes
/
type.h
File metadata and controls
27 lines (24 loc) · 690 Bytes
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
#pragma once
#include <cstdint>
/* Normal integer type */
typedef uint8_t uint8;
typedef uint16_t uint16;
typedef uint32_t uint32;
typedef uint64_t uint64;
typedef int8_t int8;
typedef int16_t int16;
typedef int32_t int32;
typedef int64_t int64;
/* Pointer type */
typedef uint8* puint8;
typedef uint16* puint16;
typedef uint32* puint32;
typedef uint64* puint64;
typedef int8* pint8;
typedef int16* pint16;
typedef int32* pint32;
typedef int64* pint64;
/* Special type */
typedef const char* ccData; // be constant data type for send
typedef char* cData; // not constant data type for receive
typedef const uint32 cuint32; // constant uint32 type for receive