MCPcopy Create free account
hub / github.com/GNOME/gjs / encodeInto

Method encodeInto

modules/esm/_encoding/encoding.js:151–155  ·  view source on GitHub ↗
(input = '', output = new Uint8Array())

Source from the content-addressed store, hash-verified

149 }
150
151 encodeInto(input = '', output = new Uint8Array()) {
152 const Encoding = import.meta.importSync('_encodingNative');
153 // The TextEncoder specification only allows for UTF-8 encoding.
154 return Encoding.encodeInto(`${input}`, output);
155 }
156}
157
158Object.defineProperty(globalThis, 'TextEncoder', {

Callers

nothing calls this directly

Calls 1

encodeIntoMethod · 0.65

Tested by

no test coverage detected