MCPcopy Create free account
hub / github.com/cryptii/cryptii / needsTextEncoding

Method needsTextEncoding

src/Chain.js:339–341  ·  view source on GitHub ↗

* Returns true, if text encoding is needed before returning the string or * code point representation. Translation between text and bytes may throw an * error if encountering malformed content. * @return {boolean}

()

Source from the content-addressed store, hash-verified

337 * @return {boolean}
338 */
339 needsTextEncoding () {
340 return this._codePoints === null && this._string === null
341 }
342
343 /**
344 * Returns true, if byte encoding is needed before returning the byte

Callers 4

Chain.jsFile · 0.80
previewMethod · 0.80
serializeMethod · 0.80
translateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected