Searched refs:allocUnsafe (Results 1 - 25 of 76) sorted by relevance
1234
/third_party/node/test/parallel/ |
H A D | test-buffer-fill.js | 9 const buf1 = Buffer.allocUnsafe(SIZE); 10 const buf2 = Buffer.allocUnsafe(SIZE); 45 assert.strictEqual(Buffer.allocUnsafe(1).fill(0).fill('\u0222')[0], 0xc8); 96 assert.strictEqual(Buffer.allocUnsafe(1).fill('\u0222', 'ucs2')[0], 0x22); 116 const buf = Buffer.allocUnsafe(SIZE); 125 const buf = Buffer.allocUnsafe(SIZE); 172 const buf2Fill = Buffer.allocUnsafe(1).fill(2); 177 const hexBufFill = Buffer.allocUnsafe(2).fill(0).fill('0102', 'hex'); 230 const b = Buffer.allocUnsafe(size); 295 () => Buffer.allocUnsafe( [all...] |
H A D | test-buffer-alloc.js | 16 const b = Buffer.allocUnsafe(1024); 30 const c = Buffer.allocUnsafe(512); 95 Buffer.allocUnsafe(0); 211 const b = Buffer.allocUnsafe(5); 229 const buffer = Buffer.allocUnsafe(32); 237 const a = Buffer.allocUnsafe(8); 372 let b = Buffer.allocUnsafe(1024); 384 b = Buffer.allocUnsafe(1024); 567 const b = Buffer.allocUnsafe(64); 582 const b = Buffer.allocUnsafe(6 [all...] |
H A D | test-buffer-read.js | 68 () => Buffer.allocUnsafe(8).readFloatBE(0xffffffff), OOR_ERROR); 71 () => Buffer.allocUnsafe(8).readFloatLE(0xffffffff), OOR_ERROR); 75 () => Buffer.allocUnsafe(8).readFloatBE(-1), OOR_ERROR); 77 () => Buffer.allocUnsafe(8).readFloatLE(-1), OOR_ERROR); 81 const buf = Buffer.allocUnsafe(0); 90 const buf = Buffer.allocUnsafe(bit / 8 - 1);
|
H A D | test-buffer-safe-unsafe.js | 17 Buffer.allocUnsafe(10); 23 Buffer.allocUnsafe(10);
|
H A D | test-stream-unshift-read-race.js | 38 const data = Buffer.allocUnsafe(chunks * hwm + Math.ceil(hwm / 2)); 71 r.unshift(Buffer.allocUnsafe(1)); 75 r.push(Buffer.allocUnsafe(1));
|
H A D | test-stream2-writable.js | 379 w.write(Buffer.allocUnsafe(1)); 401 w.write(Buffer.allocUnsafe(1)); 402 w.end(Buffer.allocUnsafe(0)); 457 w.write(Buffer.allocUnsafe(1)); 458 w.end(Buffer.allocUnsafe(0));
|
H A D | test-fs-write-stream-err.js | 71 stream.write(Buffer.allocUnsafe(256), function() { 73 stream.write(Buffer.allocUnsafe(256), common.mustCall(function(err_) {
|
H A D | test-fs-read.js | 48 test(Buffer.allocUnsafe(expected.length), 49 Buffer.allocUnsafe(expected.length),
|
H A D | test-stream2-pipe-error-handling.js | 34 source.push(Buffer.allocUnsafe(n)); 74 source.push(Buffer.allocUnsafe(n));
|
H A D | test-buffer-zero-fill-cli.js | 24 Buffer.allocUnsafe(20),
|
H A D | test-stream2-finish-pipe.js | 28 r.push(Buffer.allocUnsafe(size));
|
H A D | test-stream2-read-sync-stack.js | 34 const chunk = reads++ === N ? null : Buffer.allocUnsafe(1);
|
H A D | test-stream2-finish-pipe-error.js | 9 r.push(Buffer.allocUnsafe(size));
|
H A D | test-dgram-msgsize.js | 29 const buf = Buffer.allocUnsafe(256 * 1024);
|
H A D | test-stream2-readable-legacy-drain.js | 33 return r.push(++reads === N ? null : Buffer.allocUnsafe(1));
|
H A D | test-worker-arraybuffer-zerofill.js | 21 Buffer.allocUnsafe(32 * 1024 * 1024);
|
/third_party/node/benchmark/buffers/ |
H A D | buffer-copy.js | 17 const source = Buffer.allocUnsafe(bytes); 18 const target = Buffer.allocUnsafe(bytes);
|
H A D | buffer-tojson.js | 11 const buf = Buffer.allocUnsafe(len);
|
H A D | buffer-concat-fill.js | 14 .fill(Buffer.allocUnsafe(pieceSize));
|
H A D | buffer-fill.js | 22 const buffer = Buffer.allocUnsafe(size);
|
H A D | buffer-slice.js | 10 const buf = Buffer.allocUnsafe(1024);
|
/third_party/node/deps/npm/node_modules/safer-buffer/ |
H A D | dangerous.js | 34 if (!Dangereous.allocUnsafe) { 35 Dangereous.allocUnsafe = function (size) {
|
/third_party/node/lib/internal/streams/ |
H A D | buffer_list.js | 68 const ret = Buffer.allocUnsafe(n >>> 0); 139 const ret = Buffer.allocUnsafe(n);
|
/third_party/node/test/fixtures/ |
H A D | print-chars-from-buffer.js | 26 var b = Buffer.allocUnsafe(n);
|
/third_party/node/test/pummel/ |
H A D | test-https-no-reader.js | 36 const buf = Buffer.allocUnsafe(1024 * 1024);
|
Completed in 9 milliseconds
1234