MCPcopy Index your code
hub / github.com/nodejs/node / isUtf8

Function isUtf8

lib/buffer.js:1412–1418  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

1410}
1411
1412function isUtf8(input) {
1413 if (isTypedArray(input) || isAnyArrayBuffer(input)) {
1414 return bindingIsUtf8(input);
1415 }
1416
1417 throw new ERR_INVALID_ARG_TYPE('input', ['ArrayBuffer', 'Buffer', 'TypedArray'], input);
1418}
1419
1420function isAscii(input) {
1421 if (isTypedArray(input) || isAnyArrayBuffer(input)) {

Callers 3

util.jsFile · 0.85

Calls 1

isTypedArrayFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…