aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_meta/mpack.lua
blob: 54e097ad975ab5ce49b50f889a9d235ee0cb9899 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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