/third_party/node/test/parallel/ |
D | test-buffer-slow.js | 6 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 …]
|
D | test-buffer-zero-fill-cli.js | 8 const SlowBuffer = require('buffer').SlowBuffer; constant 25 SlowBuffer(20), 27 new SlowBuffer(20),
|
D | test-buffer-no-negative-allocation.js | 5 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);
|
D | test-buffer-over-max-length.js | 6 const SlowBuffer = buffer.SlowBuffer; constant 16 assert.throws(() => SlowBuffer((-1 >>> 0) + 1), bufferMaxSizeMsg); 22 assert.throws(() => SlowBuffer(kMaxLength + 1), bufferMaxSizeMsg);
|
D | test-buffer-failed-alloc-typed-arrays.js | 5 const SlowBuffer = require('buffer').SlowBuffer; constant 18 SlowBuffer,
|
D | test-buffer-tostring-rangeerror.js | 9 const SlowBuffer = require('buffer').SlowBuffer; constant 18 assert.throws(() => SlowBuffer(len).toString('utf8'), message);
|
D | test-buffer-inspect.js | 33 let s = buffer.SlowBuffer(4); 44 s = buffer.SlowBuffer(2);
|
D | test-buffer-bytelength.js | 5 const SlowBuffer = require('buffer').SlowBuffer; constant 29 assert(ArrayBuffer.isView(new SlowBuffer(10)));
|
D | test-icu-transcode.js | 89 buffer.transcode(new buffer.SlowBuffer(1), 'utf16le', 'ucs2');
|
D | test-buffer-alloc.js | 6 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/ |
D | extend-node.js | 35 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/ |
D | buffer-slice.js | 3 const SlowBuffer = require('buffer').SlowBuffer; constant 11 const slowBuf = new SlowBuffer(1024);
|
D | buffer-iterate.js | 2 const SlowBuffer = require('buffer').SlowBuffer; constant 22 SlowBuffer(size).fill(0);
|
D | buffer-read.js | 30 require('buffer').SlowBuffer(8);
|
D | buffer-read-with-byteLength.js | 21 require('buffer').SlowBuffer(8);
|
D | buffer-write.js | 76 require('buffer').SlowBuffer(8);
|
/third_party/node/deps/npm/node_modules/safer-buffer/ |
D | dangerous.js | 54 return buffer.SlowBuffer(size)
|
D | tests.js | 190 t.equal(dangerous.Buffer.allocUnsafeSlow(arg).constructor, buffer.SlowBuffer(0).constructor)
|
/third_party/node/deps/npm/node_modules/safe-buffer/ |
D | index.js | 61 return buffer.SlowBuffer(size)
|
/third_party/node/deps/npm/node_modules/npm-registry-fetch/node_modules/safe-buffer/ |
D | index.js | 64 return buffer.SlowBuffer(size)
|
/third_party/node/deps/npm/node_modules/string_decoder/node_modules/safe-buffer/ |
D | index.js | 63 return buffer.SlowBuffer(size)
|
/third_party/node/deps/npm/node_modules/tar/node_modules/safe-buffer/ |
D | index.js | 64 return buffer.SlowBuffer(size)
|
/third_party/node/lib/ |
D | buffer.js | 403 function SlowBuffer(length) { class 408 ObjectSetPrototypeOf(SlowBuffer.prototype, Uint8ArrayPrototype); 409 ObjectSetPrototypeOf(SlowBuffer, Uint8Array); 1268 SlowBuffer, property
|
/third_party/node/doc/guides/ |
D | writing-and-running-benchmarks.md | 473 const { SlowBuffer } = require('buffer'); 504 const BufferConstructor = conf.type === 'fast' ? Buffer : SlowBuffer;
|
/third_party/node/doc/api/ |
D | buffer.md | 3339 ### 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.
|