osrm-backend/third_party/flatbuffers/lua/flatbuffers/compat_5_3.lua
2024-07-10 20:44:36 +02:00

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