Lines Matching defs:from
178 'Buffer.allocUnsafe(), or Buffer.from() methods instead.';
188 // from node_modules and want to stop slowing down things, or
264 * factory APIs: Buffer.from(), Buffer.allocUnsafe() or Buffer.alloc() based on
280 return Buffer.from(arg, encodingOrOffset, length);
293 * Buffer.from(str[, encoding])
294 * Buffer.from(array)
295 * Buffer.from(buffer)
296 * Buffer.from(arrayBuffer[, byteOffset[, length]])
298 Buffer.from = function from(value, encodingOrOffset, length) {
310 return from(valueOf, encodingOrOffset, length);
390 // The 'assertSize' method will remove itself from the callstack when an error
392 // implementation from bleeding out to users.
1239 // Transcodes the Buffer from one encoding to another, returning a new
1275 const buf = Buffer.from(input, 'latin1');
1357 return Buffer.from(input, 'base64').toString('latin1');