MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / consume_buffer

Function consume_buffer

src/ifcopenshell-python/ifcopenshell/file.py:264–269  ·  view source on GitHub ↗
(val, inner)

Source from the content-addressed store, hash-verified

262
263
264def consume_buffer(val, inner):
265 while val:
266 s = struct.unpack("@q", val[:8])[0]
267 val = val[8:]
268 yield inner(val[0:s])
269 val = val[s:]
270
271
272binary_deserializers = (

Callers 1

file.pyFile · 0.85

Calls 1

innerFunction · 0.70

Tested by

no test coverage detected