31 #ifdef BUILD_HYPERSCAN
42 char *HSRenderPattern(
const uint8_t *pat, uint16_t pat_len)
47 const size_t hex_len = (pat_len * 4) + 1;
53 for (uint16_t i = 0; i < pat_len; i++) {
54 snprintf(sp, 5,
"\\x%02x", pat[i]);
61 void HSLogCompileError(
const char *expr, hs_compile_error_t *compile_err, hs_error_t err)
64 SCLogError(
"Unable to compile '%s' with Hyperscan, "
66 "Hyperscan compile error: %s",
67 expr, err, compile_err->message);
68 hs_free_compile_error(compile_err);
70 SCLogError(
"Unable to compile '%s' with Hyperscan, "