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

Method send_accountmessage

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

Source from the content-addressed store, hash-verified

4056 return self.send_serialized(serialized)
4057
4058 def send_accountmessage(self, value):
4059 # Serialize the value into the FBE stream
4060 serialized = self.accountmessage_model.serialize(value)
4061 assert (serialized > 0), "protoex.AccountMessage serialization failed!"
4062 assert self.accountmessage_model.verify(), "protoex.AccountMessage validation failed!"
4063
4064 # Log the value
4065 if self.logging:
4066 message = str(value)
4067 self.on_send_log(message)
4068
4069 # Send the serialized value
4070 return self.send_serialized(serialized)
4071
4072 # Send message handler
4073 def on_send(self, buffer, offset, size):

Callers 1

sendMethod · 0.95

Calls 4

on_send_logMethod · 0.95
send_serializedMethod · 0.95
serializeMethod · 0.45
verifyMethod · 0.45

Tested by

no test coverage detected