Attention is currently required from: laforge.
dexter has posted comments on this change by laforge. ( https://gerrit.osmocom.org/c/python/pyosmocom/+/38187?usp=email )
Change subject: Allow caller to pass total_len in context of osmocom.construct.build_construct ......................................................................
Patch Set 1: Code-Review+1
(1 comment)
File src/osmocom/construct.py:
https://gerrit.osmocom.org/c/python/pyosmocom/+/38187/comment/4c2ee6ed_97428... : PS1, Line 496: return c.build(decoded_data, **context) This is probably the safest way in terms of API stability. I solved it with an extra parameter to make it look more uniform to parse_construct:
def build_construct(c, decoded_data, length: typing.Optional[int] = None, context: dict = {}):