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

Method send_AccountMessage

projects/JavaScript/proto/proto.js:6434–6447  ·  view source on GitHub ↗

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

(value)

Source from the content-addressed store, hash-verified

6432 * @returns {!number} Sent bytes
6433 */
6434 send_AccountMessage (value) { // eslint-disable-line
6435 // Serialize the value into the FBE stream
6436 let serialized = this.AccountMessageModel.serialize(value)
6437 console.assert((serialized > 0), 'proto.AccountMessage serialization failed!')
6438 console.assert(this.AccountMessageModel.verify(), 'proto.AccountMessage validation failed!')
6439
6440 // Log the value
6441 if (this.logging) {
6442 this.onSendLog(value.toString())
6443 }
6444
6445 // Send the serialized value
6446 return this.sendSerialized(serialized)
6447 }
6448
6449 /**
6450 * Send message handler

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