diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-08-28 16:06:20 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-08-28 16:06:20 +0200 |
commit | cef0cbd29a903e023ad5730b98beceb40baa6bf0 (patch) | |
tree | 98248df29ef53756c3d0dab1ca48dcd7b35e5fba /wireshark/util.lua | |
parent | bab4ac11a0e5700f267405273b03436423bc5205 (diff) |
more WIP
Diffstat (limited to 'wireshark/util.lua')
-rw-r--r-- | wireshark/util.lua | 5 |
1 files changed, 5 insertions, 0 deletions
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 + |