Home
last modified time | relevance | path

Searched refs:bufferFrom (Results 1 – 17 of 17) sorted by relevance

/third_party/node/deps/npm/node_modules/buffer-from/
Dreadme.md14 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])
Dtest.js1 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')
Dindex.js51 function bufferFrom (value, encodingOrOffset, length) { function
69 module.exports = bufferFrom
/third_party/node/deps/npm/node_modules/concat-stream/
Dindex.js3 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/
Dparsejson.js12 , 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/
Dindex.js6 var bufferFrom = Buffer.from && Buffer.from !== Uint8Array.from variable
22 chunk = bufferFrom ? Buffer.from(chunk) : new Buffer(chunk)
/third_party/typescript/src/compiler/
Dsys.ts1130 /*@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/
DnodeServer.ts167 const buf = sys.bufferFrom!(s);
250 sys.write = (s: string) => writeMessage(sys.bufferFrom!(s, "utf8") as globalThis.Buffer);
/third_party/typescript/src/harness/
DharnessUtils.ts3 return ts.sys.bufferFrom!(s).toString("utf8");
DvfsUtil.ts693 …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/
Dlint-md.mjs27467 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/
Dtsc.js4512 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
DtypingsInstaller.js7119 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
Dtsserver.js7130 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")); };
DtypescriptServices.js7324 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
Dtsserverlibrary.js7324 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
Dtypescript.js7324 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