/third_party/node/deps/npm/node_modules/buffer-from/ |
D | readme.md | 14 const bufferFrom = require('buffer-from') 16 console.log(bufferFrom([1, 2, 3, 4])) 20 console.log(bufferFrom(arr.buffer, 1, 2)) 23 console.log(bufferFrom('test', 'utf8')) 26 const buf = bufferFrom('test') 27 console.log(bufferFrom(buf)) 33 ### bufferFrom(array) 39 ### bufferFrom(arrayBuffer[, byteOffset[, length]]) 51 ### bufferFrom(buffer) 57 ### bufferFrom(string[, encoding])
|
D | test.js | 1 var bufferFrom = require('./') variable 4 assert.equal(bufferFrom([1, 2, 3, 4]).toString('hex'), '01020304') 7 assert.equal(bufferFrom(arr.buffer, 1, 2).toString('hex'), '0203') 9 assert.equal(bufferFrom('test', 'utf8').toString('hex'), '74657374') 11 var buf = bufferFrom('test') 12 assert.equal(bufferFrom(buf).toString('hex'), '74657374')
|
D | index.js | 51 function bufferFrom (value, encodingOrOffset, length) { function 69 module.exports = bufferFrom
|
/third_party/node/deps/npm/node_modules/concat-stream/ |
D | index.js | 3 var bufferFrom = require('buffer-from') variable 91 strings.push(bufferFrom(p)) 93 strings.push(bufferFrom(String(p))) 112 bufs.push(bufferFrom(p)) 114 bufs.push(bufferFrom(String(p))) 132 parts[i] = bufferFrom(parts[i])
|
/third_party/node/deps/npm/node_modules/JSONStream/test/ |
D | parsejson.js | 12 , bufferFrom = Buffer.from && Buffer.from !== Uint8Array.from variable 25 p.write (bufferFrom ? Buffer.from(str) : new Buffer(str))
|
/third_party/node/deps/npm/node_modules/JSONStream/ |
D | index.js | 6 var bufferFrom = Buffer.from && Buffer.from !== Uint8Array.from variable 22 chunk = bufferFrom ? Buffer.from(chunk) : new Buffer(chunk)
|
/third_party/typescript/src/compiler/ |
D | sys.ts | 1130 /*@internal*/ bufferFrom?(input: string, encoding?: string): Buffer; method 1311 bufferFrom, 1312 base64decode: input => bufferFrom(input, "base64").toString("utf8"), 1313 base64encode: input => bufferFrom(input).toString("base64"), 1422 function bufferFrom(input: string, encoding?: string): Buffer { function
|
/third_party/typescript/src/tsserver/ |
D | nodeServer.ts | 167 const buf = sys.bufferFrom!(s); 250 sys.write = (s: string) => writeMessage(sys.bufferFrom!(s, "utf8") as globalThis.Buffer);
|
/third_party/typescript/src/harness/ |
D | harnessUtils.ts | 3 return ts.sys.bufferFrom!(s).toString("utf8");
|
D | vfsUtil.ts | 693 …node.buffer = Buffer.isBuffer(data) ? data.slice() : ts.sys.bufferFrom!("" + data, encoding || "ut… 1229 return ts.sys.bufferFrom!(host.readFile(path)!, "utf8") as Buffer; // TODO: GH#18217
|
/third_party/node/tools/ |
D | lint-md.mjs | 27467 function bufferFrom$1 (value, encodingOrOffset, length) { 27485 var bufferFrom_1 = bufferFrom$1; 28123 var bufferFrom = bufferFrom_1; variable 28206 strings.push(bufferFrom(p)); 28208 strings.push(bufferFrom(String(p))); 28227 bufs.push(bufferFrom(p)); 28229 bufs.push(bufferFrom(String(p))); 28247 parts[i] = bufferFrom(parts[i]);
|
/third_party/typescript/lib/ |
D | tsc.js | 4512 bufferFrom: bufferFrom, property 4513 … base64decode: function (input) { return bufferFrom(input, "base64").toString("utf8"); }, 4514 base64encode: function (input) { return bufferFrom(input).toString("base64"); }, 4603 function bufferFrom(input, encoding) { function
|
D | typingsInstaller.js | 7119 bufferFrom: bufferFrom, property 7120 … base64decode: function (input) { return bufferFrom(input, "base64").toString("utf8"); }, 7121 base64encode: function (input) { return bufferFrom(input).toString("base64"); }, 7227 function bufferFrom(input, encoding) { function
|
D | tsserver.js | 7130 bufferFrom: bufferFrom, property 7131 … base64decode: function (input) { return bufferFrom(input, "base64").toString("utf8"); }, 7132 base64encode: function (input) { return bufferFrom(input).toString("base64"); }, 7238 function bufferFrom(input, encoding) { function 163564 var buf = sys.bufferFrom(s); 163643 sys.write = function (s) { return writeMessage(sys.bufferFrom(s, "utf8")); };
|
D | typescriptServices.js | 7324 bufferFrom: bufferFrom, property 7325 … base64decode: function (input) { return bufferFrom(input, "base64").toString("utf8"); }, 7326 base64encode: function (input) { return bufferFrom(input).toString("base64"); }, 7432 function bufferFrom(input, encoding) { function
|
D | tsserverlibrary.js | 7324 bufferFrom: bufferFrom, property 7325 … base64decode: function (input) { return bufferFrom(input, "base64").toString("utf8"); }, 7326 base64encode: function (input) { return bufferFrom(input).toString("base64"); }, 7432 function bufferFrom(input, encoding) { function
|
D | typescript.js | 7324 bufferFrom: bufferFrom, property 7325 … base64decode: function (input) { return bufferFrom(input, "base64").toString("utf8"); }, 7326 base64encode: function (input) { return bufferFrom(input).toString("base64"); }, 7432 function bufferFrom(input, encoding) { function
|