mirror of
https://github.com/capnproto/pycapnp.git
synced 2025-03-04 08:24:43 +01:00
6 lines
245 B
Python
6 lines
245 B
Python
import capnp
|
|
|
|
|
|
def _struct_reducer(schema_id, data):
|
|
'Hack to deal with pypy not allowing reduce functions to be "built-in" methods (ie. compiled from a .pyx)'
|
|
return capnp._global_schema_parser.modules_by_id[schema_id].from_bytes(data)
|