27 lines
639 B
Lua

-- Buildat: extension/cereal/init.lua
local polybox = require("buildat/extension/polycode_sandbox")
local log = buildat.Logger("extension/cereal")
local M = {safe = {}}
function M.safe.binary_input(data, types)
if type(data) ~= 'string' then
error("data not string")
end
if type(types) ~= 'table' then
error("types not table")
end
return __buildat_cereal_binary_input(data, types)
end
function M.safe.binary_output(values, types)
if type(values) ~= 'table' then
error("values not table")
end
if type(types) ~= 'table' then
error("types not table")
end
return __buildat_cereal_binary_output(values, types)
end
return M