Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
71
def
field_uint(field: int, value: int) -> bytes:
72
return
tag(field, 0) + varint(value)
73
74
75
def
field_float(field: int, value: float) -> bytes:
Callers
1
make_sensor_frame
Function · 0.85
Calls
2
tag
Function · 0.85
varint
Function · 0.85
Tested by
no test coverage detected