Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Serial-Studio/Serial-Studio
/ field_submsg
Function
field_submsg
examples/Protobuf Example/sensor_simulator.py:84–85 ·
view source on GitHub ↗
(field: int, payload: bytes)
Source
from the content-addressed store, hash-verified
82
83
84
def
field_submsg(field: int, payload: bytes) -> bytes:
85
return
tag(field, 2) + varint(len(payload)) + payload
86
87
88
def
encode_vec3(x: float, y: float, z: 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