1
0
mirror of https://github.com/bitdefender/bddisasm.git synced 2025-01-07 05:40:55 +00:00
bddisasm/pybddisasm/_pybddisasm/pybddisasm.c
2021-03-30 22:04:02 +03:00

25 lines
633 B
C

/*
* Copyright (c) 2020 Bitdefender
* SPDX-License-Identifier: Apache-2.0
*/
#include "pybddisasm.h"
#include <stdlib.h>
int nd_decode_ex(INSTRUX *instrux, void *code, size_t size, int def_code, int def_data)
{
return NdDecodeEx(instrux, code, size, def_code, def_data);
}
int nd_decode_ex2(INSTRUX *instrux, void *code, size_t size, int def_code, int def_data, int def_stack, int prefered_vendor)
{
return NdDecodeEx2(instrux, code, size, def_code, def_data, def_stack, prefered_vendor);
}
int nd_to_text(INSTRUX *instrux, size_t rip, size_t bufsize, char *buf)
{
return NdToText(instrux, rip, bufsize, buf);
}