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

Method send

projects/JavaScript/proto/protoex.js:6536–6552  ·  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

6534 * @returns {!number} Sent bytes
6535 */
6536 send (value) {
6537 if ((value instanceof OrderMessage) && (value.fbeType === this.OrderMessageModel.fbeType)) {
6538 return this.send_OrderMessage(value)
6539 }
6540 if ((value instanceof BalanceMessage) && (value.fbeType === this.BalanceMessageModel.fbeType)) {
6541 return this.send_BalanceMessage(value)
6542 }
6543 if ((value instanceof AccountMessage) && (value.fbeType === this.AccountMessageModel.fbeType)) {
6544 return this.send_AccountMessage(value)
6545 }
6546 let result = 0
6547 result = this._protoSender.send(value)
6548 if (result > 0) {
6549 return result
6550 }
6551 return 0
6552 }
6553
6554 /**
6555 * Send OrderMessage value

Callers 3

sendMethod · 0.45
sendMethod · 0.45
sendMethod · 0.45

Calls 3

send_OrderMessageMethod · 0.95
send_BalanceMessageMethod · 0.95
send_AccountMessageMethod · 0.95

Tested by

no test coverage detected