Home
last modified time | relevance | path

Searched refs:SlowBuffer (Results 1 – 25 of 33) sorted by relevance

12

/third_party/node/test/parallel/
Dtest-buffer-slow.js6 const SlowBuffer = buffer.SlowBuffer; constant
11 let sb = SlowBuffer(4);
23 sb = SlowBuffer(4);
32 assert.strictEqual(SlowBuffer(0).length, 0);
35 SlowBuffer(buffer.kMaxLength).length, buffer.kMaxLength);
48 assert.throws(() => SlowBuffer(), bufferInvalidTypeMsg);
49 assert.throws(() => SlowBuffer({}), bufferInvalidTypeMsg);
50 assert.throws(() => SlowBuffer('6'), bufferInvalidTypeMsg);
51 assert.throws(() => SlowBuffer(true), bufferInvalidTypeMsg);
59 assert.throws(() => SlowBuffer(NaN), bufferMaxSizeMsg);
[all …]
Dtest-buffer-zero-fill-cli.js8 const SlowBuffer = require('buffer').SlowBuffer; constant
25 SlowBuffer(20),
27 new SlowBuffer(20),
Dtest-buffer-no-negative-allocation.js5 const { SlowBuffer } = require('buffer');
35 assert.throws(() => SlowBuffer(-Buffer.poolSize), msg);
36 assert.throws(() => SlowBuffer(-100), msg);
37 assert.throws(() => SlowBuffer(-1), msg);
38 assert.throws(() => SlowBuffer(NaN), msg);
Dtest-buffer-over-max-length.js6 const SlowBuffer = buffer.SlowBuffer; constant
16 assert.throws(() => SlowBuffer((-1 >>> 0) + 1), bufferMaxSizeMsg);
22 assert.throws(() => SlowBuffer(kMaxLength + 1), bufferMaxSizeMsg);
Dtest-buffer-failed-alloc-typed-arrays.js5 const SlowBuffer = require('buffer').SlowBuffer; constant
18 SlowBuffer,
Dtest-buffer-tostring-rangeerror.js9 const SlowBuffer = require('buffer').SlowBuffer; constant
18 assert.throws(() => SlowBuffer(len).toString('utf8'), message);
Dtest-buffer-inspect.js33 let s = buffer.SlowBuffer(4);
44 s = buffer.SlowBuffer(2);
Dtest-buffer-bytelength.js5 const SlowBuffer = require('buffer').SlowBuffer; constant
29 assert(ArrayBuffer.isView(new SlowBuffer(10)));
Dtest-icu-transcode.js89 buffer.transcode(new buffer.SlowBuffer(1), 'utf16le', 'ucs2');
Dtest-buffer-alloc.js6 const SlowBuffer = require('buffer').SlowBuffer; constant
1084 assert.strictEqual(SlowBuffer.prototype.parent, undefined);
1085 assert.strictEqual(SlowBuffer.prototype.offset, undefined);
/third_party/node/deps/npm/node_modules/iconv-lite/lib/
Dextend-node.js35 var SlowBuffer = require('buffer').SlowBuffer;
37 original.SlowBufferToString = SlowBuffer.prototype.toString;
38 SlowBuffer.prototype.toString = function(encoding, start, end) { class
51 original.SlowBufferWrite = SlowBuffer.prototype.write;
52 SlowBuffer.prototype.write = function(string, offset, length, encoding) {
101 Buffer.byteLength = SlowBuffer.byteLength = function(str, encoding) {
198 var SlowBuffer = require('buffer').SlowBuffer;
200 SlowBuffer.prototype.toString = original.SlowBufferToString;
201 SlowBuffer.prototype.write = original.SlowBufferWrite;
/third_party/node/benchmark/buffers/
Dbuffer-slice.js3 const SlowBuffer = require('buffer').SlowBuffer; constant
11 const slowBuf = new SlowBuffer(1024);
Dbuffer-iterate.js2 const SlowBuffer = require('buffer').SlowBuffer; constant
22 SlowBuffer(size).fill(0);
Dbuffer-read.js30 require('buffer').SlowBuffer(8);
Dbuffer-read-with-byteLength.js21 require('buffer').SlowBuffer(8);
Dbuffer-write.js76 require('buffer').SlowBuffer(8);
/third_party/node/deps/npm/node_modules/safer-buffer/
Ddangerous.js54 return buffer.SlowBuffer(size)
Dtests.js190 t.equal(dangerous.Buffer.allocUnsafeSlow(arg).constructor, buffer.SlowBuffer(0).constructor)
/third_party/node/deps/npm/node_modules/safe-buffer/
Dindex.js61 return buffer.SlowBuffer(size)
/third_party/node/deps/npm/node_modules/npm-registry-fetch/node_modules/safe-buffer/
Dindex.js64 return buffer.SlowBuffer(size)
/third_party/node/deps/npm/node_modules/string_decoder/node_modules/safe-buffer/
Dindex.js63 return buffer.SlowBuffer(size)
/third_party/node/deps/npm/node_modules/tar/node_modules/safe-buffer/
Dindex.js64 return buffer.SlowBuffer(size)
/third_party/node/lib/
Dbuffer.js403 function SlowBuffer(length) { class
408 ObjectSetPrototypeOf(SlowBuffer.prototype, Uint8ArrayPrototype);
409 ObjectSetPrototypeOf(SlowBuffer, Uint8Array);
1268 SlowBuffer, property
/third_party/node/doc/guides/
Dwriting-and-running-benchmarks.md473 const { SlowBuffer } = require('buffer');
504 const BufferConstructor = conf.type === 'fast' ? Buffer : SlowBuffer;
/third_party/node/doc/api/
Dbuffer.md3339 ### Class: `SlowBuffer`
3347 the constructor always returned a `Buffer` instance, rather than a `SlowBuffer`
3350 #### `new SlowBuffer(size)` argument
3357 * `size` {integer} The desired length of the new `SlowBuffer`.
3481 [`Buffer.allocUnsafeSlow()`][], and `new SlowBuffer(size)` are not zero-filled.

12