Skip to main content
Module

x/denops_std/function/mod.ts>list2blob

📚 Standard module for denops.vim
Go to Latest
function list2blob
import { list2blob } from "https://deno.land/x/denops_std@v6.4.0/function/mod.ts";

Return a Blob concatenating all the number values in {list}. Examples:

list2blob([1, 2, 3, 4]) returns 0z01020304
list2blob([])           returns 0z

Returns an empty Blob on error. If one of the numbers is negative or more than 255 error E1239 is given.

blob2list() does the opposite.

Can also be used as a method:

GetList()->list2blob()

Parameters

denops: Denops
list: unknown

Returns

Promise<unknown>