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

Method encodeInto

types/gjs.d.ts:196–196  ·  view source on GitHub ↗

* The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns an object indicating the progress of the encoding. This is potentially more performant than the encode() method — especially when the target buffer

(source: string, destination: Uint8Array<ArrayBufferLike>)

Source from the content-addressed store, hash-verified

194 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto)
195 */
196 encodeInto(source: string, destination: Uint8Array<ArrayBufferLike>): TextEncoderEncodeIntoResult;
197}
198
199interface TextEncoderCommon {

Callers 2

encodeIntoMethod · 0.65
testEncoding.jsFile · 0.65

Implementers 1

TextEncodermodules/esm/_encoding/encoding.js

Calls

no outgoing calls

Tested by

no test coverage detected