mirror of
https://github.com/fuse-friends/fuse-native
synced 2024-10-27 18:34:01 +00:00
detach array buffer on read free as a test
This commit is contained in:
parent
258346d835
commit
4555cc43a0
@ -366,7 +366,7 @@ FUSE_METHOD_VOID(releasedir, 2, 0, (const char *path, struct fuse_file_info *inf
|
||||
}
|
||||
})
|
||||
|
||||
FUSE_METHOD(read, 6, 1, (const char *path, char *buf, size_t len, off_t offset, struct fuse_file_info *info), {
|
||||
FUSE_METHOD(read, 6, 2, (const char *path, char *buf, size_t len, off_t offset, struct fuse_file_info *info), {
|
||||
l->path = path;
|
||||
l->buf = buf;
|
||||
l->len = len;
|
||||
@ -380,7 +380,7 @@ FUSE_METHOD(read, 6, 1, (const char *path, char *buf, size_t len, off_t offset,
|
||||
napi_create_uint32(env, l->len, &(argv[5]));
|
||||
FUSE_UINT64_TO_INTS_ARGV(l->offset, 6)
|
||||
}, {
|
||||
// TODO: handle bytes processed?
|
||||
napi_detach_arraybuffer(env, argv[3]);
|
||||
})
|
||||
|
||||
FUSE_METHOD(write, 6, 1, (const char *path, const char *buf, size_t len, off_t offset, struct fuse_file_info *info), {
|
||||
|
Loading…
Reference in New Issue
Block a user