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

Method send_AccountMessage

projects/JavaScript/proto/proto.js:6861–6874  ·  view source on GitHub ↗

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

(value)

Source from the content-addressed store, hash-verified

6859 * @returns {!number} Sent bytes
6860 */
6861 send_AccountMessage (value) { // eslint-disable-line
6862 // Serialize the value into the FBE stream
6863 let serialized = this.AccountMessageSenderModel.serialize(value)
6864 console.assert((serialized > 0), 'proto.AccountMessage serialization failed!')
6865 console.assert(this.AccountMessageSenderModel.verify(), 'proto.AccountMessage validation failed!')
6866
6867 // Log the value
6868 if (this.logging) {
6869 this.onSendLog(value.toString())
6870 }
6871
6872 // Send the serialized value
6873 return this.sendSerialized(serialized)
6874 }
6875
6876 /**
6877 * 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