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

Method send

projects/Python/proto/protoex.py:4018–4028  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

4016 # Send methods
4017
4018 def send(self, value):
4019 if isinstance(value, OrderMessage) and (value.fbe_type == self.ordermessage_model.fbe_type):
4020 return self.send_ordermessage(value)
4021 if isinstance(value, BalanceMessage) and (value.fbe_type == self.balancemessage_model.fbe_type):
4022 return self.send_balancemessage(value)
4023 if isinstance(value, AccountMessage) and (value.fbe_type == self.accountmessage_model.fbe_type):
4024 return self.send_accountmessage(value)
4025 result = self._proto_sender.send(value)
4026 if result > 0:
4027 return result
4028 return 0
4029
4030 def send_ordermessage(self, value):
4031 # Serialize the value into the FBE stream

Callers 1

sendMethod · 0.45

Calls 3

send_ordermessageMethod · 0.95
send_balancemessageMethod · 0.95
send_accountmessageMethod · 0.95

Tested by

no test coverage detected