Home
last modified time | relevance | path

Searched refs:allocUnsafe (Results 1 - 25 of 76) sorted by relevance

1234

/third_party/node/test/parallel/
H A Dtest-buffer-fill.js9 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 Dtest-buffer-alloc.js16 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 Dtest-buffer-read.js68 () => 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 Dtest-buffer-safe-unsafe.js17 Buffer.allocUnsafe(10);
23 Buffer.allocUnsafe(10);
H A Dtest-stream-unshift-read-race.js38 const data = Buffer.allocUnsafe(chunks * hwm + Math.ceil(hwm / 2));
71 r.unshift(Buffer.allocUnsafe(1));
75 r.push(Buffer.allocUnsafe(1));
H A Dtest-stream2-writable.js379 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 Dtest-fs-write-stream-err.js71 stream.write(Buffer.allocUnsafe(256), function() {
73 stream.write(Buffer.allocUnsafe(256), common.mustCall(function(err_) {
H A Dtest-fs-read.js48 test(Buffer.allocUnsafe(expected.length),
49 Buffer.allocUnsafe(expected.length),
H A Dtest-stream2-pipe-error-handling.js34 source.push(Buffer.allocUnsafe(n));
74 source.push(Buffer.allocUnsafe(n));
H A Dtest-buffer-zero-fill-cli.js24 Buffer.allocUnsafe(20),
H A Dtest-stream2-finish-pipe.js28 r.push(Buffer.allocUnsafe(size));
H A Dtest-stream2-read-sync-stack.js34 const chunk = reads++ === N ? null : Buffer.allocUnsafe(1);
H A Dtest-stream2-finish-pipe-error.js9 r.push(Buffer.allocUnsafe(size));
H A Dtest-dgram-msgsize.js29 const buf = Buffer.allocUnsafe(256 * 1024);
H A Dtest-stream2-readable-legacy-drain.js33 return r.push(++reads === N ? null : Buffer.allocUnsafe(1));
H A Dtest-worker-arraybuffer-zerofill.js21 Buffer.allocUnsafe(32 * 1024 * 1024);
/third_party/node/benchmark/buffers/
H A Dbuffer-copy.js17 const source = Buffer.allocUnsafe(bytes);
18 const target = Buffer.allocUnsafe(bytes);
H A Dbuffer-tojson.js11 const buf = Buffer.allocUnsafe(len);
H A Dbuffer-concat-fill.js14 .fill(Buffer.allocUnsafe(pieceSize));
H A Dbuffer-fill.js22 const buffer = Buffer.allocUnsafe(size);
H A Dbuffer-slice.js10 const buf = Buffer.allocUnsafe(1024);
/third_party/node/deps/npm/node_modules/safer-buffer/
H A Ddangerous.js34 if (!Dangereous.allocUnsafe) {
35 Dangereous.allocUnsafe = function (size) {
/third_party/node/lib/internal/streams/
H A Dbuffer_list.js68 const ret = Buffer.allocUnsafe(n >>> 0);
139 const ret = Buffer.allocUnsafe(n);
/third_party/node/test/fixtures/
H A Dprint-chars-from-buffer.js26 var b = Buffer.allocUnsafe(n);
/third_party/node/test/pummel/
H A Dtest-https-no-reader.js36 const buf = Buffer.allocUnsafe(1024 * 1024);

Completed in 9 milliseconds

1234