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

Method send_accountmessage

projects/Python/proto/proto.py:3931–3943  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

3929 return self.send_serialized(serialized)
3930
3931 def send_accountmessage(self, value):
3932 # Serialize the value into the FBE stream
3933 serialized = self.accountmessage_model.serialize(value)
3934 assert (serialized > 0), "proto.AccountMessage serialization failed!"
3935 assert self.accountmessage_model.verify(), "proto.AccountMessage validation failed!"
3936
3937 # Log the value
3938 if self.logging:
3939 message = str(value)
3940 self.on_send_log(message)
3941
3942 # Send the serialized value
3943 return self.send_serialized(serialized)
3944
3945 # Send message handler
3946 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