rizin/shlr/gdb/include/utils.h
defragger 0404623595 added libgdbr sources to shlr folder
Signed-off-by: defragger <rlaemmert@gmail.com>
2014-03-03 17:19:29 +01:00

18 lines
430 B
C

/*! \file */
#ifndef UTILS_H
#define UTILS_H
#include <stdint.h>
#include <stdio.h>
uint8_t cmd_checksum(const char* command);
uint64_t unpack_uint64(char *buff, int len);
uint64_t unpack_uint64_co(char* buff, int len);
int unpack_hex(char* src, uint64_t len, char* dst);
int pack_hex(char* src, uint64_t len, char* dst);
int hex2int(int ch);
int int2hex(int i);
void hexdump(void* ptr, uint64_t len, uint64_t offset);
#endif