* Send BalanceMessage value * @this {!Client} * @param {!BalanceMessage} value BalanceMessage value to send * @returns {!number} Sent bytes
(value)
| 6838 | * @returns {!number} Sent bytes |
| 6839 | */ |
| 6840 | send_BalanceMessage (value) { // eslint-disable-line |
| 6841 | // Serialize the value into the FBE stream |
| 6842 | let serialized = this.BalanceMessageSenderModel.serialize(value) |
| 6843 | console.assert((serialized > 0), 'proto.BalanceMessage serialization failed!') |
| 6844 | console.assert(this.BalanceMessageSenderModel.verify(), 'proto.BalanceMessage validation failed!') |
| 6845 | |
| 6846 | // Log the value |
| 6847 | if (this.logging) { |
| 6848 | this.onSendLog(value.toString()) |
| 6849 | } |
| 6850 | |
| 6851 | // Send the serialized value |
| 6852 | return this.sendSerialized(serialized) |
| 6853 | } |
| 6854 | |
| 6855 | /** |
| 6856 | * Send AccountMessage value |