32 #ifdef BUILD_HYPERSCAN
43 char *HSRenderPattern(
const uint8_t *pat, uint16_t pat_len)
48 const size_t hex_len = (pat_len * 4) + 1;
54 for (uint16_t i = 0; i < pat_len; i++) {
55 snprintf(sp, 5,
"\\x%02x", pat[i]);
62 void HSLogCompileError(
const char *expr, hs_compile_error_t *compile_err, hs_error_t err)
65 SCLogError(
"Unable to compile '%s' with Hyperscan, "
67 "Hyperscan compile error: %s",
68 expr, err, compile_err->message);
69 hs_free_compile_error(compile_err);
71 SCLogError(
"Unable to compile '%s' with Hyperscan, "