Lines Matching refs:fileHandle
16 async function read(fileHandle, buffer, offset, length, position, options) { argument
18 fileHandle.read({ buffer, offset, length, position }) :
19 fileHandle.read(buffer, offset, length, position);
27 const fileHandle = await open(filePath, 'w+');
33 fileHandle.on('close', common.mustCall());
35 await read(fileHandle, Buffer.alloc(11), 0, 11, 0, options);
39 await fileHandle.close();
56 const fileHandle = await open(filePath, 'r');
59 await read(fileHandle, Buffer.alloc(1), 0, 1, pos, options);
66 const fileHandle = await open(filePath, 'r');
68 await fileHandle.read();
77 const fileHandle = await open(filePath, 'r');
84 const { bytesRead } = await read(fileHandle, buf, 0, len, pos, opts);
94 const fileHandle = await open(filePath, 'r');
95 const { bytesRead } = await read(fileHandle, buf, 0, len, 0, opts);