Zydis  v3.2.1
ShortString.h File Reference

Defines the immutable and storage-efficient ZydisShortString struct, which is used to store strings in the generated tables. More...

#include <ZydisExportConfig.h>
#include <Zycore/Defines.h>
#include <Zycore/Types.h>
Include dependency graph for ShortString.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ZydisShortString_
 Defines the ZydisShortString struct. More...
 

Macros

#define ZYDIS_MAKE_SHORTSTRING(string)    { string, sizeof(string) - 1 }
 Declares a ZydisShortString from a static C-style string. More...
 

Typedefs

typedef struct ZydisShortString_ ZydisShortString
 Defines the ZydisShortString struct. More...
 

Detailed Description

Defines the immutable and storage-efficient ZydisShortString struct, which is used to store strings in the generated tables.

Macro Definition Documentation

◆ ZYDIS_MAKE_SHORTSTRING

#define ZYDIS_MAKE_SHORTSTRING (   string)     { string, sizeof(string) - 1 }

Declares a ZydisShortString from a static C-style string.

Parameters
stringThe C-string constant.

Typedef Documentation

◆ ZydisShortString

Defines the ZydisShortString struct.

This compact struct is mainly used for internal string-tables to save up some bytes.

All fields in this struct should be considered as "private". Any changes may lead to unexpected behavior.