diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-03-07 02:52:28 +0100 |
---|---|---|
committer | Aleksi Lindeman <0xdec05eba@gmail.com> | 2018-03-07 02:52:35 +0100 |
commit | e96e47e4d1eb7217a0169013c9968b8eb52bbb4e (patch) | |
tree | 00a52f662e09634cad31b143c1ca99241536a9db /sibs/types.hpp | |
parent | 91418b32d7b67c335eb3baffc0bf381c04f68035 (diff) |
Make serializer/deserializer endian independent0.2.0
Diffstat (limited to 'sibs/types.hpp')
-rw-r--r-- | sibs/types.hpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sibs/types.hpp b/sibs/types.hpp new file mode 100644 index 0000000..0379100 --- /dev/null +++ b/sibs/types.hpp @@ -0,0 +1,22 @@ +#pragma once + +#include <cstdint> + +namespace sibs +{ + 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; + + typedef float f32; + typedef double f64; + + typedef intptr_t isize; + typedef uintptr_t usize; +} |