Lines Matching refs:length_from
72 StrFixedLenField("load", "", length_from=lambda p: p[PNIORealTimeRawData].length()),
118 def __init__(self, name, default, length_from=None, count_from=None): argument
120 self.length_from = length_from
128 if self.length_from is not None:
129 val = self.length_from(pkt, s)
210 NotionalLenField("len", None, length_from=lambda p, s: len(s)),
211 NotionalLenField("dataLen", None, length_from=lambda p, s: len(s[:-4].rstrip(b"\0"))),
212 …LowerLayerBoundPacketListField("data", [], _pnio_rtc_guess_payload_class, length_from=lambda p: p.…
213 StrFixedLenField("padding", "", length_from=lambda p: p[PNIORealTime].padding_length()),
444 def __init__(self, name, default, length=None, length_from=None): argument
445 self.length_from = length_from
447 self.length_from = lambda p, l=length: l
451 length = self.length_from(pkt)
455 length = self.length_from(pkt)
468 StrFixedLenField("load", "", length_from=lambda p: p[Profisafe].data_length()),
470 XVarBytesField("CRC", 0, length_from=lambda p: p[Profisafe].crc_length())