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

Method willTranslate

src/Encoder.js:253–255  ·  view source on GitHub ↗

* Triggered before performing encode or decode on given content. * @protected * @param {Chain} content * @param {boolean} isEncode True for encoding, false for decoding * @return {number[]|string|Uint8Array|Chain|Promise} Filtered content

(content, isEncode)

Source from the content-addressed store, hash-verified

251 * @return {number[]|string|Uint8Array|Chain|Promise} Filtered content
252 */
253 willTranslate (content, isEncode) {
254 return content
255 }
256
257 /**
258 * Performs encode or decode on given content.

Callers 2

willEncodeMethod · 0.95
willDecodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected