MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / field_uint

Function field_uint

examples/Protobuf Example/sensor_simulator.py:71–72  ·  view source on GitHub ↗
(field: int, value: int)

Source from the content-addressed store, hash-verified

69
70
71def field_uint(field: int, value: int) -> bytes:
72 return tag(field, 0) + varint(value)
73
74
75def field_float(field: int, value: float) -> bytes:

Callers 1

make_sensor_frameFunction · 0.85

Calls 2

tagFunction · 0.85
varintFunction · 0.85

Tested by

no test coverage detected