@@ -2481,6 +2481,7 @@ atan2({expr1}, {expr2}) Float arc tangent of {expr1} / {expr2}
24812481balloon_gettext() String current text in the balloon
24822482balloon_show({expr}) none show {expr} inside the balloon
24832483balloon_split({msg}) List split {msg} as used for a balloon
2484+ blob2list({blob}) List convert {blob} into a list of numbers
24842485browse({save}, {title}, {initdir}, {default})
24852486 String put up a file requester
24862487browsedir({title}, {initdir}) String put up a directory requester
@@ -2733,7 +2734,8 @@ libcallnr({lib}, {func}, {arg}) Number idem, but return a Number
27332734line({expr} [, {winid}]) Number line nr of cursor, last line or mark
27342735line2byte({lnum}) Number byte count of line {lnum}
27352736lispindent({lnum}) Number Lisp indent for line {lnum}
2736- list2str({list} [, {utf8}]) String turn numbers in {list} into a String
2737+ list2blob({list}) Blob turn {list} of numbers into a Blob
2738+ list2str({list} [, {utf8}]) String turn {list} of numbers into a String
27372739listener_add({callback} [, {buf}])
27382740 Number add a callback to listen to changes
27392741listener_flush([{buf}]) none invoke listener callbacks
@@ -3367,6 +3369,17 @@ balloon_split({msg}) *balloon_split()*
33673369< {only available when compiled with the |+balloon_eval_term|
33683370 feature}
33693371
3372+ blob2list({blob}) *blob2list()*
3373+ Return a List containing the number value of each byte in Blob
3374+ {blob}. Examples: >
3375+ blob2list(0z0102.0304) returns [1, 2, 3, 4]
3376+ blob2list(0z) returns []
3377+ < Returns an empty List on error. |list2blob()| does the
3378+ opposite.
3379+
3380+ Can also be used as a |method|: >
3381+ GetBlob()->blob2list()
3382+
33703383 *browse()*
33713384browse({save}, {title}, {initdir}, {default})
33723385 Put up a file requester. This only works when "has("browse")"
@@ -7220,6 +7233,19 @@ lispindent({lnum}) *lispindent()*
72207233 Can also be used as a |method|: >
72217234 GetLnum()->lispindent()
72227235
7236+ list2blob({list}) *list2blob()*
7237+ Return a Blob concatenating all the number values in {list}.
7238+ Examples: >
7239+ list2blob([1, 2, 3, 4]) returns 0z01020304
7240+ list2blob([]) returns 0z
7241+ < Returns an empty Blob on error. If one of the numbers is
7242+ negative or more than 255 error *E1239* is given.
7243+
7244+ |blob2list()| does the opposite.
7245+
7246+ Can also be used as a |method|: >
7247+ GetList()->list2blob()
7248+
72237249list2str({list} [, {utf8}]) *list2str()*
72247250 Convert each number in {list} to a character string can
72257251 concatenate them all. Examples: >
0 commit comments