MCPcopy Index your code
hub / github.com/tensorflow/tfjs / decodeString

Function decodeString

tfjs-core/src/util.ts:131–134  ·  view source on GitHub ↗
(bytes: Uint8Array, encoding = 'utf-8')

Source from the content-addressed store, hash-verified

129 * @doc {heading: 'Util'}
130 */
131export function decodeString(bytes: Uint8Array, encoding = 'utf-8'): string {
132 encoding = encoding || 'utf-8';
133 return env().platform.decode(bytes, encoding);
134}
135
136export function isTypedArray(a: {}): a is Float32Array|Int32Array|Uint8Array|
137 Uint8ClampedArray {

Callers 2

fromUint8ToStringArrayFunction · 0.90
decodeStringsFunction · 0.85

Calls 2

envFunction · 0.90
decodeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…