neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

mpack.lua (489B)


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