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

Method getDescription

src/Chain.js:253–261  ·  view source on GitHub ↗

* Returns a string describing the content of this chain. * Useful for logging, debugging. * @return {string}

()

Source from the content-addressed store, hash-verified

251 * @return {string}
252 */
253 getDescription () {
254 if (this._string !== null) {
255 return `String(${this._string})`
256 } else if (this._codePoints !== null) {
257 return `CodePoints(${this._codePoints.join(', ')})`
258 } else {
259 return `Bytes(${ByteEncoder.hexStringFromBytes(this._bytes)})`
260 }
261 }
262
263 /**
264 * Returns wether given text is contained in this chain.

Callers

nothing calls this directly

Calls 2

joinMethod · 0.80
hexStringFromBytesMethod · 0.80

Tested by

no test coverage detected