From cef0cbd29a903e023ad5730b98beceb40baa6bf0 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Wed, 28 Aug 2024 16:06:20 +0200 Subject: more WIP --- wireshark/util.lua | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 wireshark/util.lua (limited to 'wireshark/util.lua') diff --git a/wireshark/util.lua b/wireshark/util.lua new file mode 100644 index 0000000..e23f958 --- /dev/null +++ b/wireshark/util.lua @@ -0,0 +1,5 @@ +function bits(idx, len) + len = len or 1 + return ((2^len)-1) * 2^idx +end + -- cgit v1.2.3