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

Method send

projects/JavaScript/proto/proto.js:6373–6384  ·  view source on GitHub ↗

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

(value)

Source from the content-addressed store, hash-verified

6371 * @returns {!number} Sent bytes
6372 */
6373 send (value) {
6374 if ((value instanceof OrderMessage) && (value.fbeType === this.OrderMessageModel.fbeType)) {
6375 return this.send_OrderMessage(value)
6376 }
6377 if ((value instanceof BalanceMessage) && (value.fbeType === this.BalanceMessageModel.fbeType)) {
6378 return this.send_BalanceMessage(value)
6379 }
6380 if ((value instanceof AccountMessage) && (value.fbeType === this.AccountMessageModel.fbeType)) {
6381 return this.send_AccountMessage(value)
6382 }
6383 return 0
6384 }
6385
6386 /**
6387 * Send OrderMessage value

Callers

nothing calls this directly

Calls 3

send_OrderMessageMethod · 0.95
send_BalanceMessageMethod · 0.95
send_AccountMessageMethod · 0.95

Tested by

no test coverage detected