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

Method send

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

Source from the content-addressed store, hash-verified

4278 # Send methods
4279
4280 def send(self, value):
4281 if isinstance(value, OrderMessage) and (value.fbe_type == self.ordermessage_model.fbe_type):
4282 return self.send_ordermessage(value)
4283 if isinstance(value, BalanceMessage) and (value.fbe_type == self.balancemessage_model.fbe_type):
4284 return self.send_balancemessage(value)
4285 if isinstance(value, AccountMessage) and (value.fbe_type == self.accountmessage_model.fbe_type):
4286 return self.send_accountmessage(value)
4287 result = self._proto_sender.send(value)
4288 if result > 0:
4289 return result
4290 return 0
4291
4292 def send_ordermessage(self, value):
4293 # Serialize the value into the FBE stream

Callers

nothing calls this directly

Calls 4

send_ordermessageMethod · 0.95
send_balancemessageMethod · 0.95
send_accountmessageMethod · 0.95
sendMethod · 0.45

Tested by

no test coverage detected