2023-07-15 16:55:32 +01:00
|
|
|
--- @meta
|
|
|
|
|
|
2023-07-17 16:32:56 +01:00
|
|
|
-- luacheck: no unused args
|
|
|
|
|
|
2024-02-15 17:16:04 +00:00
|
|
|
--- @brief
|
2023-07-15 16:55:32 +01:00
|
|
|
---
|
2023-07-17 15:13:54 +01:00
|
|
|
--- This module provides encoding and decoding of Lua objects to and
|
2023-07-15 16:55:32 +01:00
|
|
|
--- 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
|
2024-02-15 17:16:04 +00:00
|
|
|
--- @return any
|
2023-07-15 16:55:32 +01:00
|
|
|
function vim.mpack.decode(str) end
|
|
|
|
|
|
|
|
|
|
--- Encodes (or "packs") Lua object {obj} as msgpack in a Lua string.
|
2024-02-15 17:16:04 +00:00
|
|
|
--- @param obj any
|
|
|
|
|
--- @return string
|
2023-07-15 16:55:32 +01:00
|
|
|
function vim.mpack.encode(obj) end
|