import { msgpackdump } from "https://deno.land/x/denops_std@v3.6.0/function/nvim/mod.ts";
Convert a list of VimL objects to msgpack. Returned value is
|readfile()|-style list. Example:
call writefile(msgpackdump([{}]), 'fname.mpack', 'b')
This will write the single 0x80 byte to fname.mpack
file
(dictionary with zero items is represented by 0x80 byte in
messagepack).
Limitations:
- |Funcref|s cannot be dumped.
- Containers that reference themselves cannot be dumped.
- Dictionary keys are always dumped as STR strings.
- Other strings are always dumped as BIN strings.
- Points 3. and 4. do not apply to |msgpack-special-dict|s.
Parameters
denops: Denops