MCPcopy Index your code
hub / github.com/commandoperator/cmdop-sdk / _write_delimited

Function _write_delimited

python/src/cmdop/_transport.py:80–84  ·  view source on GitHub ↗

Write ``env`` as a varint-size-prefixed protobuf frame.

(writer: asyncio.StreamWriter, env: pb.Envelope)

Source from the content-addressed store, hash-verified

78
79
80def _write_delimited(writer: asyncio.StreamWriter, env: pb.Envelope) -> None:
81 """Write ``env`` as a varint-size-prefixed protobuf frame."""
82 data = env.SerializeToString()
83 writer.write(_VarintBytes(len(data)))
84 writer.write(data)
85
86
87class Transport:

Callers 1

_writeMethod · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected