MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / start_write_message

Method start_write_message

erpc_python/erpc/basic_codec.py:22–28  ·  view source on GitHub ↗
(self, msgInfo)

Source from the content-addressed store, hash-verified

20 BASIC_CODEC_VERSION = 1
21
22 def start_write_message(self, msgInfo):
23 header = (self.BASIC_CODEC_VERSION << 24) \
24 | ((msgInfo.service & 0xff) << 16) \
25 | ((msgInfo.request & 0xff) << 8) \
26 | (msgInfo.type.value & 0xff)
27 self.write_uint32(header)
28 self.write_uint32(msgInfo.sequence)
29
30 def _write(self, fmt, value):
31 self._buffer += struct.pack(fmt, value)

Callers

nothing calls this directly

Calls 1

write_uint32Method · 0.95

Tested by

no test coverage detected