Searched refs:bufferArr (Results 1 – 6 of 6) sorted by relevance
/third_party/node/test/parallel/ |
D | test-fs-readv.js | 18 const bufferArr = []; variable 20 bufferArr[0] = Buffer.alloc(Math.floor(combinedLength / 2)); 21 bufferArr[1] = Buffer.alloc(combinedLength - bufferArr[0].length); 23 return bufferArr; 26 const getCallback = (fd, bufferArr) => { argument 28 assert.deepStrictEqual(bufferArr, buffers); 33 assert(Buffer.concat(bufferArr).equals(exptectedBuff)); 43 const bufferArr = allocateEmptyBuffers(exptectedBuff.length); 44 const callback = getCallback(fd, bufferArr); 46 fs.readv(fd, bufferArr, 0, callback); [all …]
|
D | test-fs-readv-promises.js | 19 const bufferArr = []; variable 21 bufferArr[0] = Buffer.alloc(Math.floor(combinedLength / 2)); 22 bufferArr[1] = Buffer.alloc(combinedLength - bufferArr[0].length); 24 return bufferArr; 32 const bufferArr = allocateEmptyBuffers(exptectedBuff.length); 40 ({ bytesRead, buffers } = await handle.readv(bufferArr, null)); 42 assert.deepStrictEqual(buffers, bufferArr); 43 assert(Buffer.concat(bufferArr).equals(await fs.readFile(filename))); 51 const bufferArr = allocateEmptyBuffers(exptectedBuff.length); 58 ({ bytesRead, buffers } = await handle.readv(bufferArr)); [all …]
|
D | test-fs-writev.js | 25 const bufferArr = [buffer, buffer]; variable 28 assert.deepStrictEqual(bufferArr, buffers); 29 const expectedLength = bufferArr.length * buffer.byteLength; 33 assert(Buffer.concat(bufferArr).equals(fs.readFileSync(filename))); 36 fs.writev(fd, bufferArr, null, done); 45 const bufferArr = [buffer, buffer]; variable 48 assert.deepStrictEqual(bufferArr, buffers); 50 const expectedLength = bufferArr.length * buffer.byteLength; 54 assert(Buffer.concat(bufferArr).equals(fs.readFileSync(filename))); 57 fs.writev(fd, bufferArr, done); [all …]
|
D | test-fs-readv-sync.js | 20 const bufferArr = []; variable 22 bufferArr[0] = Buffer.alloc(Math.floor(combinedLength / 2)); 23 bufferArr[1] = Buffer.alloc(combinedLength - bufferArr[0].length); 25 return bufferArr; 32 const bufferArr = allocateEmptyBuffers(exptectedBuff.length); 37 read = fs.readvSync(fd, bufferArr, 0); 42 assert(Buffer.concat(bufferArr).equals(fs.readFileSync(filename))); 49 const bufferArr = allocateEmptyBuffers(exptectedBuff.length); 54 read = fs.readvSync(fd, bufferArr); 59 assert(Buffer.concat(bufferArr).equals(fs.readFileSync(filename)));
|
D | test-fs-writev-promises.js | 21 const bufferArr = [buffer, buffer]; variable 22 const expectedLength = bufferArr.length * buffer.byteLength; 27 ({ bytesWritten, buffers } = await handle.writev(bufferArr, null)); 29 assert.deepStrictEqual(buffers, bufferArr); 30 assert(Buffer.concat(bufferArr).equals(await fs.readFile(filename))); 39 const bufferArr = [buffer, buffer, buffer]; variable 40 const expectedLength = bufferArr.length * buffer.byteLength; 44 ({ bytesWritten, buffers } = await handle.writev(bufferArr)); 46 assert.deepStrictEqual(buffers, bufferArr); 47 assert(Buffer.concat(bufferArr).equals(await fs.readFile(filename)));
|
D | test-fs-writev-sync.js | 25 const bufferArr = [buffer, buffer]; variable 26 const expectedLength = bufferArr.length * buffer.byteLength; 31 written = fs.writevSync(fd, bufferArr, null); 36 assert(Buffer.concat(bufferArr).equals(fs.readFileSync(filename))); 45 const bufferArr = [buffer, buffer, buffer]; variable 46 const expectedLength = bufferArr.length * buffer.byteLength; 51 written = fs.writevSync(fd, bufferArr); 56 assert(Buffer.concat(bufferArr).equals(fs.readFileSync(filename)));
|