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

Method serializeValue

src/Field/Byte.js:143–145  ·  view source on GitHub ↗

* Serializes the field value to a JSON serializable value. * @override * @throws {Error} If field value is invalid. * @throws {Error} If serialization is not possible. * @return {mixed} Serialized data

()

Source from the content-addressed store, hash-verified

141 * @return {mixed} Serialized data
142 */
143 serializeValue () {
144 return ByteEncoder.base64StringFromBytes(this.getValue())
145 }
146
147 /**
148 * Extracts a value serialized by {@link Field.serializeValue} and returns it.

Callers

nothing calls this directly

Calls 2

base64StringFromBytesMethod · 0.80
getValueMethod · 0.45

Tested by

no test coverage detected