Zydis  v2.0.1
CommonTypes.h File Reference

Includes and defines some default datatypes. More...

#include <Zydis/Defines.h>
#include <stdint.h>
#include <stddef.h>
Include dependency graph for CommonTypes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ZYDIS_NULL   ((void*)0)
 
#define ZYDIS_FALSE   0
 
#define ZYDIS_TRUE   1
 

Typedefs

typedef uint8_t ZydisU8
 
typedef uint16_t ZydisU16
 
typedef uint32_t ZydisU32
 
typedef uint64_t ZydisU64
 
typedef int8_t ZydisI8
 
typedef int16_t ZydisI16
 
typedef int32_t ZydisI32
 
typedef int64_t ZydisI64
 
typedef size_t ZydisUSize
 
typedef ptrdiff_t ZydisISize
 
typedef uintptr_t ZydisUPointer
 
typedef intptr_t ZydisIPointer
 
typedef ZydisU8 ZydisBool
 @briefs Defines the ZydisBool datatype. More...
 

Functions

 ZYDIS_STATIC_ASSERT (sizeof(ZydisU8)==1)
 
 ZYDIS_STATIC_ASSERT (sizeof(ZydisU16)==2)
 
 ZYDIS_STATIC_ASSERT (sizeof(ZydisU32)==4)
 
 ZYDIS_STATIC_ASSERT (sizeof(ZydisU64)==8)
 
 ZYDIS_STATIC_ASSERT (sizeof(ZydisI8)==1)
 
 ZYDIS_STATIC_ASSERT (sizeof(ZydisI16)==2)
 
 ZYDIS_STATIC_ASSERT (sizeof(ZydisI32)==4)
 
 ZYDIS_STATIC_ASSERT (sizeof(ZydisI64)==8)
 
 ZYDIS_STATIC_ASSERT (sizeof(ZydisUSize)==sizeof(void *))
 
 ZYDIS_STATIC_ASSERT (sizeof(ZydisISize)==sizeof(void *))
 
 ZYDIS_STATIC_ASSERT (sizeof(ZydisUPointer)==sizeof(void *))
 
 ZYDIS_STATIC_ASSERT (sizeof(ZydisIPointer)==sizeof(void *))
 
 ZYDIS_STATIC_ASSERT ((ZydisI8) -1 >> 1<(ZydisI8)((ZydisU8) -1 >> 1))
 

Detailed Description

Includes and defines some default datatypes.

Macro Definition Documentation

◆ ZYDIS_FALSE

#define ZYDIS_FALSE   0

◆ ZYDIS_NULL

#define ZYDIS_NULL   ((void*)0)

◆ ZYDIS_TRUE

#define ZYDIS_TRUE   1

Typedef Documentation

◆ ZydisBool

typedef ZydisU8 ZydisBool

@briefs Defines the ZydisBool datatype.

◆ ZydisI16

typedef int16_t ZydisI16

◆ ZydisI32

typedef int32_t ZydisI32

◆ ZydisI64

typedef int64_t ZydisI64

◆ ZydisI8

typedef int8_t ZydisI8

◆ ZydisIPointer

typedef intptr_t ZydisIPointer

◆ ZydisISize

typedef ptrdiff_t ZydisISize

◆ ZydisU16

typedef uint16_t ZydisU16

◆ ZydisU32

typedef uint32_t ZydisU32

◆ ZydisU64

typedef uint64_t ZydisU64

◆ ZydisU8

typedef uint8_t ZydisU8

◆ ZydisUPointer

typedef uintptr_t ZydisUPointer

◆ ZydisUSize

typedef size_t ZydisUSize

Function Documentation

◆ ZYDIS_STATIC_ASSERT() [1/13]

ZYDIS_STATIC_ASSERT ( )

◆ ZYDIS_STATIC_ASSERT() [2/13]

ZYDIS_STATIC_ASSERT ( sizeof(ZydisI16 = =2)

◆ ZYDIS_STATIC_ASSERT() [3/13]

ZYDIS_STATIC_ASSERT ( sizeof(ZydisI32 = =4)

◆ ZYDIS_STATIC_ASSERT() [4/13]

ZYDIS_STATIC_ASSERT ( sizeof(ZydisI64 = =8)

◆ ZYDIS_STATIC_ASSERT() [5/13]

ZYDIS_STATIC_ASSERT ( sizeof(ZydisI8 = =1)

◆ ZYDIS_STATIC_ASSERT() [6/13]

ZYDIS_STATIC_ASSERT ( sizeof(ZydisIPointer = =sizeof(void *))

◆ ZYDIS_STATIC_ASSERT() [7/13]

ZYDIS_STATIC_ASSERT ( sizeof(ZydisISize = =sizeof(void *))

◆ ZYDIS_STATIC_ASSERT() [8/13]

ZYDIS_STATIC_ASSERT ( sizeof(ZydisU16 = =2)

◆ ZYDIS_STATIC_ASSERT() [9/13]

ZYDIS_STATIC_ASSERT ( sizeof(ZydisU32 = =4)

◆ ZYDIS_STATIC_ASSERT() [10/13]

ZYDIS_STATIC_ASSERT ( sizeof(ZydisU64 = =8)

◆ ZYDIS_STATIC_ASSERT() [11/13]

ZYDIS_STATIC_ASSERT ( sizeof(ZydisU8 = =1)

◆ ZYDIS_STATIC_ASSERT() [12/13]

ZYDIS_STATIC_ASSERT ( sizeof(ZydisUPointer = =sizeof(void *))

◆ ZYDIS_STATIC_ASSERT() [13/13]

ZYDIS_STATIC_ASSERT ( sizeof(ZydisUSize = =sizeof(void *))