osrm-backend/lua/flatbuffers/compat_5_3.lua
Siarhei Fedartsou 0f6aab9da6 Squashed 'third_party/flatbuffers/' content from commit 595bf0007
git-subtree-dir: third_party/flatbuffers
git-subtree-split: 595bf0007ab1929570c7671f091313c8fc20644e
2024-06-22 13:33:34 +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