2019-01-12 22:47:31 +01:00
|
|
|
/* blob.c */
|
|
|
|
blob_T *blob_alloc(void);
|
|
|
|
int rettv_blob_alloc(typval_T *rettv);
|
|
|
|
void rettv_blob_set(typval_T *rettv, blob_T *b);
|
2020-01-26 15:56:19 +01:00
|
|
|
int blob_copy(blob_T *from, typval_T *to);
|
2019-01-12 22:47:31 +01:00
|
|
|
void blob_free(blob_T *b);
|
|
|
|
void blob_unref(blob_T *b);
|
|
|
|
long blob_len(blob_T *b);
|
2019-01-24 12:31:44 +01:00
|
|
|
int blob_get(blob_T *b, int idx);
|
2021-04-17 20:44:56 +02:00
|
|
|
void blob_set(blob_T *blob, int idx, int byte);
|
|
|
|
void blob_set_append(blob_T *blob, int idx, int byte);
|
2019-01-12 22:47:31 +01:00
|
|
|
int blob_equal(blob_T *b1, blob_T *b2);
|
2022-10-20 13:28:51 +01:00
|
|
|
int read_blob(FILE *fd, typval_T *rettv, off_T offset, off_T size_arg);
|
2019-01-12 22:47:31 +01:00
|
|
|
int write_blob(FILE *fd, blob_T *blob);
|
2019-01-13 17:48:04 +01:00
|
|
|
char_u *blob2string(blob_T *blob, char_u **tofree, char_u *numbuf);
|
|
|
|
blob_T *string2blob(char_u *str);
|
2021-04-11 20:26:34 +02:00
|
|
|
int blob_slice_or_index(blob_T *blob, int is_range, varnumber_T n1, varnumber_T n2, int exclusive, typval_T *rettv);
|
2021-04-14 21:30:06 +02:00
|
|
|
int check_blob_index(long bloblen, varnumber_T n1, int quiet);
|
2021-04-14 20:35:23 +02:00
|
|
|
int check_blob_range(long bloblen, varnumber_T n1, varnumber_T n2, int quiet);
|
2021-04-12 21:21:02 +02:00
|
|
|
int blob_set_range(blob_T *dest, long n1, long n2, typval_T *src);
|
2021-12-22 18:19:26 +00:00
|
|
|
void blob_add(typval_T *argvars, typval_T *rettv);
|
2021-08-04 19:25:54 +02:00
|
|
|
void blob_remove(typval_T *argvars, typval_T *rettv, char_u *arg_errmsg);
|
2023-03-19 21:23:38 +00:00
|
|
|
void blob_filter_map(blob_T *blob_arg, filtermap_T filtermap, typval_T *expr, char_u *arg_errmsg, typval_T *rettv);
|
2021-12-22 18:19:26 +00:00
|
|
|
void blob_insert_func(typval_T *argvars, typval_T *rettv);
|
2022-09-22 17:07:00 +01:00
|
|
|
void blob_reduce(typval_T *argvars, typval_T *expr, typval_T *rettv);
|
2021-12-22 18:19:26 +00:00
|
|
|
void blob_reverse(blob_T *b, typval_T *rettv);
|
2021-09-14 17:54:30 +02:00
|
|
|
void f_blob2list(typval_T *argvars, typval_T *rettv);
|
|
|
|
void f_list2blob(typval_T *argvars, typval_T *rettv);
|
2019-01-12 22:47:31 +01:00
|
|
|
/* vim: set ft=c : */
|