diff options
Diffstat (limited to 'runtime/lua/vim/_meta/mpack.lua')
-rw-r--r-- | runtime/lua/vim/_meta/mpack.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/runtime/lua/vim/_meta/mpack.lua b/runtime/lua/vim/_meta/mpack.lua new file mode 100644 index 0000000000..54e097ad97 --- /dev/null +++ b/runtime/lua/vim/_meta/mpack.lua @@ -0,0 +1,15 @@ +--- @meta + +-- luacheck: no unused args + +--- @defgroup vim.mpack +--- +--- This module provides encoding and decoding of Lua objects to and +--- from msgpack-encoded strings. Supports |vim.NIL| and |vim.empty_dict()|. + +--- Decodes (or "unpacks") the msgpack-encoded {str} to a Lua object. +--- @param str string +function vim.mpack.decode(str) end + +--- Encodes (or "packs") Lua object {obj} as msgpack in a Lua string. +function vim.mpack.encode(obj) end |