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

Method getBytes

src/Chain.js:308–314  ·  view source on GitHub ↗

* Lazily retrieves the byte representation. * @return {Uint8Array} Uint8Array of bytes

()

Source from the content-addressed store, hash-verified

306 * @return {Uint8Array} Uint8Array of bytes
307 */
308 getBytes () {
309 if (this._bytes === null) {
310 this._bytes = TextEncoder.bytesFromCodePoints(
311 this.getCodePoints(), this._encoding)
312 }
313 return this._bytes
314 }
315
316 /**
317 * Returns byte value at index.

Callers 15

getByteAtMethod · 0.95
getSizeMethod · 0.95
Chain.jsFile · 0.80
assertEqualMethod · 0.80
previewMethod · 0.80
serializeMethod · 0.80
performEncodeMethod · 0.80
performEncodeMethod · 0.80
performEncodeMethod · 0.80
performEncodeMethod · 0.80
createDigestMethod · 0.80
performTranslateMethod · 0.80

Calls 2

getCodePointsMethod · 0.95
bytesFromCodePointsMethod · 0.80

Tested by

no test coverage detected