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