* Send BalanceMessage value * @this {!Sender} * @param {!BalanceMessage} value BalanceMessage value to send * @returns {!number} Sent bytes
(value)
| 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 |