Mercurial > vim
comparison src/proto/blob.pro @ 15454:1d2b5c016f17 v8.1.0735
patch 8.1.0735: cannot handle binary data
commit https://github.com/vim/vim/commit/6e5ea8d2a995b32bbc5972edc4f827b959f2702f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 12 22:47:31 2019 +0100
patch 8.1.0735: cannot handle binary data
Problem: Cannot handle binary data.
Solution: Add the Blob type. (Yasuhiro Matsumoto, closes https://github.com/vim/vim/issues/3638)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 12 Jan 2019 23:00:06 +0100 |
parents | |
children | 435fcefd2c8e |
comparison
equal
deleted
inserted
replaced
15453:cdee6e827112 | 15454:1d2b5c016f17 |
---|---|
1 /* blob.c */ | |
2 blob_T *blob_alloc(void); | |
3 int rettv_blob_alloc(typval_T *rettv); | |
4 void rettv_blob_set(typval_T *rettv, blob_T *b); | |
5 void blob_free(blob_T *b); | |
6 void blob_unref(blob_T *b); | |
7 long blob_len(blob_T *b); | |
8 char_u blob_get(blob_T *b, int idx); | |
9 void blob_set(blob_T *b, int idx, char_u c); | |
10 int blob_equal(blob_T *b1, blob_T *b2); | |
11 int read_blob(FILE *fd, blob_T *blob); | |
12 int write_blob(FILE *fd, blob_T *blob); | |
13 /* vim: set ft=c : */ |