Path: blob/master/dep/zydis/include/Zydis/Mnemonic.h
4216 views
/***************************************************************************************************12Zyan Disassembler Library (Zydis)34Original Author : Florian Bernd56* Permission is hereby granted, free of charge, to any person obtaining a copy7* of this software and associated documentation files (the "Software"), to deal8* in the Software without restriction, including without limitation the rights9* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell10* copies of the Software, and to permit persons to whom the Software is11* furnished to do so, subject to the following conditions:12*13* The above copyright notice and this permission notice shall be included in all14* copies or substantial portions of the Software.15*16* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR17* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,18* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE19* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER20* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,21* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE22* SOFTWARE.2324***************************************************************************************************/2526/**27* @file28* Mnemonic constant definitions and helper functions.29*/3031#ifndef ZYDIS_MNEMONIC_H32#define ZYDIS_MNEMONIC_H3334#include <Zydis/Defines.h>35#include <Zydis/ShortString.h>3637#ifdef __cplusplus38extern "C" {39#endif4041/* ============================================================================================== */42/* Enums and types */43/* ============================================================================================== */4445#include <Zydis/Generated/EnumMnemonic.h>4647/* ============================================================================================== */48/* Exported functions */49/* ============================================================================================== */5051/**52* @addtogroup mnemonic Mnemonic53* Functions for retrieving mnemonic names.54* @{55*/5657/**58* Returns the specified instruction mnemonic string.59*60* @param mnemonic The mnemonic.61*62* @return The instruction mnemonic string or `ZYAN_NULL`, if an invalid mnemonic was passed.63*/64ZYDIS_EXPORT const char* ZydisMnemonicGetString(ZydisMnemonic mnemonic);6566/**67* Returns the specified instruction mnemonic as `ZydisShortString`.68*69* @param mnemonic The mnemonic.70*71* @return The instruction mnemonic string or `ZYAN_NULL`, if an invalid mnemonic was passed.72*73* The `buffer` of the returned struct is guaranteed to be zero-terminated in this special case.74*/75ZYDIS_EXPORT const ZydisShortString* ZydisMnemonicGetStringWrapped(ZydisMnemonic mnemonic);7677/**78* @}79*/8081/* ============================================================================================== */8283#ifdef __cplusplus84}85#endif8687#endif /* ZYDIS_MNEMONIC_H */888990