(self)
| 1898 | return s + struct.pack("%is" % len_pkt, self.i2m(pkt, val)) |
| 1899 | |
| 1900 | def randval(self): |
| 1901 | # type: () -> RandBin |
| 1902 | try: |
| 1903 | return RandBin(self.length_from(None)) # type: ignore |
| 1904 | except Exception: |
| 1905 | return RandBin(RandNum(0, 200)) |
| 1906 | |
| 1907 | |
| 1908 | class StrFixedLenFieldUtf16(StrFixedLenField, StrFieldUtf16): |
nothing calls this directly
no test coverage detected