mpack.lua 489 B

12345678910111213141516171819
  1. --- @meta
  2. -- luacheck: no unused args
  3. --- @brief
  4. ---
  5. --- This module provides encoding and decoding of Lua objects to and
  6. --- from msgpack-encoded strings. Supports |vim.NIL| and |vim.empty_dict()|.
  7. --- Decodes (or "unpacks") the msgpack-encoded {str} to a Lua object.
  8. --- @param str string
  9. --- @return any
  10. function vim.mpack.decode(str) end
  11. --- Encodes (or "packs") Lua object {obj} as msgpack in a Lua string.
  12. --- @param obj any
  13. --- @return string
  14. function vim.mpack.encode(obj) end