MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / read_fields

Function read_fields

packages/ibkr/ref/source/pythonclient/ibapi/comm.py:91–100  ·  view source on GitHub ↗
(buf: bytes)

Source from the content-addressed store, hash-verified

89
90
91def read_fields(buf: bytes) -> tuple:
92 if isinstance(buf, str):
93 buf = buf.encode()
94
95 """ msg payload is made of fields terminated/separated by NULL chars """
96 fields = buf.split(b"\0")
97
98 return tuple(
99 fields[0:-1]
100 ) # last one is empty; this may slow dow things though, TODO

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.65

Tested by

no test coverage detected