mirror of https://github.com/x64dbg/zydis
Use size_t instead of uint64_t for memory input
This commit is contained in:
parent
2e11b44ddf
commit
b291c8a760
|
@ -101,11 +101,11 @@ typedef struct ZydisMemoryInput_
|
|||
/**
|
||||
* @brief The length of the memory buffer.
|
||||
*/
|
||||
uint64_t inputBufferLen;
|
||||
size_t inputBufferLen;
|
||||
/**
|
||||
* @brief The current input position.
|
||||
*/
|
||||
uint64_t inputBufferPos;
|
||||
size_t inputBufferPos;
|
||||
} ZydisMemoryInput;
|
||||
|
||||
/* ---------------------------------------------------------------------------------------------- */
|
||||
|
@ -122,7 +122,7 @@ typedef struct ZydisMemoryInput_
|
|||
* @return A zydis status code.
|
||||
*/
|
||||
ZYDIS_EXPORT ZydisStatus ZydisInputInitMemoryInput(ZydisMemoryInput* input, const void* buffer,
|
||||
uint64_t length);
|
||||
size_t length);
|
||||
|
||||
/* ---------------------------------------------------------------------------------------------- */
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ static ZydisBool ZydisMemoryInputNext(ZydisMemoryInput* input, uint8_t* data)
|
|||
/* Exported functions */
|
||||
/* ---------------------------------------------------------------------------------------------- */
|
||||
|
||||
ZydisStatus ZydisInputInitMemoryInput(ZydisMemoryInput* input, const void* buffer, uint64_t length)
|
||||
ZydisStatus ZydisInputInitMemoryInput(ZydisMemoryInput* input, const void* buffer, size_t length)
|
||||
{
|
||||
if (!input || !buffer || (length == 0))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue