git-subtree-dir: third_party/flatbuffers git-subtree-split: 595bf0007ab1929570c7671f091313c8fc20644e
15 lines
260 B
Lua
15 lines
260 B
Lua
-- We need to put it into a separate file to avoid syntax error like `unexpected symbol near '~'`
|
|
local m = {}
|
|
|
|
|
|
m.GetAlignSize = function(k, size)
|
|
return ((~k) + 1) & (size - 1)
|
|
end
|
|
|
|
|
|
m.string_pack = string.pack
|
|
m.string_unpack = string.unpack
|
|
|
|
|
|
return m
|