From 718e7b10e0dc5ec25b017e8b44b41780d9aee84c Mon Sep 17 00:00:00 2001 From: ari melody Date: Fri, 13 Mar 2026 05:19:58 +0000 Subject: [PATCH] add imhex pattern file --- hashmapp.hexpat | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 hashmapp.hexpat diff --git a/hashmapp.hexpat b/hashmapp.hexpat new file mode 100644 index 0000000..30cd20a --- /dev/null +++ b/hashmapp.hexpat @@ -0,0 +1,15 @@ +#include "std/mem.pat" + +struct Entry { + u16 key_len [[color("f0f080")]]; + char key[key_len] [[color("ffffc0")]]; + u16 value_len [[color("8080f0")]]; + char value[value_len] [[color("c0c0ff")]]; +}; + +struct DB { + char magic[4] [[color("ff00ff")]]; + Entry entries[while(!std::mem::eof())]; +}; + +DB db @ 0x00; \ No newline at end of file