2021-09-29 05:36:46 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2021 Ant Group. All rights reserved.
|
|
|
|
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef UTILS_H
|
|
|
|
#define UTILS_H
|
|
|
|
|
2021-12-22 11:52:07 +00:00
|
|
|
#include "bh_platform.h"
|
2021-09-29 05:36:46 +00:00
|
|
|
|
2021-12-22 11:52:07 +00:00
|
|
|
int32
|
2021-09-29 05:36:46 +00:00
|
|
|
hex(char ch);
|
|
|
|
|
|
|
|
char *
|
2021-12-22 11:52:07 +00:00
|
|
|
mem2hex(char *mem, char *buf, int32 count);
|
2021-09-29 05:36:46 +00:00
|
|
|
|
|
|
|
char *
|
2021-12-22 11:52:07 +00:00
|
|
|
hex2mem(char *buf, char *mem, int32 count);
|
2021-09-29 05:36:46 +00:00
|
|
|
|
2021-12-22 11:52:07 +00:00
|
|
|
int32
|
|
|
|
unescape(char *msg, int32 len);
|
2021-09-29 05:36:46 +00:00
|
|
|
|
|
|
|
#endif /* UTILS_H */
|