Lines Matching defs:struct
4 import struct
94 (opcode_len,) = struct.unpack("@B", data[1:2])
101 opcode_type, opcode_len = struct.unpack("@BB", data[:2])
302 self.u32 = struct.unpack("@I", data[4:8])[0]
306 return super().__bytes__() + struct.pack("@I", self.u32)
345 return socket.inet_ntop(socket.AF_INET, struct.pack("@I", self.u32))
350 self.u32 = struct.unpack("@I", ip_bin)[0]
366 (self.val,) = struct.unpack("@I", data[4:8])
375 ret += struct.pack("@I", self.val)
401 (self.mtu,) = struct.unpack("@I", data[4:8])
410 ret += struct.pack("@I", self.mtu)
441 low, high = struct.unpack("@HH", data[off : off + 4])
450 ret += struct.pack("@I", self.val)