MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / send_BalanceMessage

Method send_BalanceMessage

projects/JavaScript/proto/proto.js:6413–6426  ·  view source on GitHub ↗

* Send BalanceMessage value * @this {!Sender} * @param {!BalanceMessage} value BalanceMessage value to send * @returns {!number} Sent bytes

(value)

Source from the content-addressed store, hash-verified

6411 * @returns {!number} Sent bytes
6412 */
6413 send_BalanceMessage (value) { // eslint-disable-line
6414 // Serialize the value into the FBE stream
6415 let serialized = this.BalanceMessageModel.serialize(value)
6416 console.assert((serialized > 0), 'proto.BalanceMessage serialization failed!')
6417 console.assert(this.BalanceMessageModel.verify(), 'proto.BalanceMessage validation failed!')
6418
6419 // Log the value
6420 if (this.logging) {
6421 this.onSendLog(value.toString())
6422 }
6423
6424 // Send the serialized value
6425 return this.sendSerialized(serialized)
6426 }
6427
6428 /**
6429 * Send AccountMessage value

Callers 1

sendMethod · 0.95

Calls 5

onSendLogMethod · 0.95
sendSerializedMethod · 0.95
serializeMethod · 0.45
verifyMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected