James Kuszmaul | 8e62b02 | 2022-03-22 09:33:25 -0700 | [diff] [blame] | 1 | -- We need to put it into a separate file to avoid syntax error like `unexpected symbol near '~'` |
2 | local m = {} | ||||
3 | |||||
4 | |||||
5 | m.GetAlignSize = function(k, size) | ||||
6 | return ((~k) + 1) & (size - 1) | ||||
7 | end | ||||
8 | |||||
9 | |||||
10 | m.string_pack = string.pack | ||||
11 | m.string_unpack = string.unpack | ||||
12 | |||||
13 | |||||
14 | return m |