@@ -2481,6 +2481,7 @@ atan2({expr1}, {expr2}) Float arc tangent of {expr1} / {expr2}
2481
2481
balloon_gettext() String current text in the balloon
2482
2482
balloon_show({expr}) none show {expr} inside the balloon
2483
2483
balloon_split({msg}) List split {msg} as used for a balloon
2484
+ blob2list({blob}) List convert {blob} into a list of numbers
2484
2485
browse({save}, {title}, {initdir}, {default})
2485
2486
String put up a file requester
2486
2487
browsedir({title}, {initdir}) String put up a directory requester
@@ -2733,7 +2734,8 @@ libcallnr({lib}, {func}, {arg}) Number idem, but return a Number
2733
2734
line({expr} [, {winid}]) Number line nr of cursor, last line or mark
2734
2735
line2byte({lnum}) Number byte count of line {lnum}
2735
2736
lispindent({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
2737
2739
listener_add({callback} [, {buf}])
2738
2740
Number add a callback to listen to changes
2739
2741
listener_flush([{buf}]) none invoke listener callbacks
@@ -3367,6 +3369,17 @@ balloon_split({msg}) *balloon_split()*
3367
3369
< {only available when compiled with the |+balloon_eval_term|
3368
3370
feature}
3369
3371
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
+
3370
3383
*browse()*
3371
3384
browse({save}, {title}, {initdir}, {default})
3372
3385
Put up a file requester. This only works when "has("browse")"
@@ -7220,6 +7233,19 @@ lispindent({lnum}) *lispindent()*
7220
7233
Can also be used as a |method|: >
7221
7234
GetLnum()->lispindent()
7222
7235
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
+
7223
7249
list2str({list} [, {utf8}]) *list2str()*
7224
7250
Convert each number in {list} to a character string can
7225
7251
concatenate them all. Examples: >
0 commit comments