MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / decodeUTF8

Function decodeUTF8

packages/core/src/utils/envelope.ts:84–87  ·  view source on GitHub ↗

* Decode a UTF8 array to string.

(input: Uint8Array)

Source from the content-addressed store, hash-verified

82 * Decode a UTF8 array to string.
83 */
84function decodeUTF8(input: Uint8Array): string {
85 const carrier = getSentryCarrier(GLOBAL_OBJ);
86 return carrier.decodePolyfill ? carrier.decodePolyfill(input) : new TextDecoder().decode(input);
87}
88
89/**
90 * Serializes an envelope.

Callers 1

readJsonFunction · 0.85

Calls 2

getSentryCarrierFunction · 0.90
decodeMethod · 0.80

Tested by

no test coverage detected