Did I find the right examples for you? yes no

All Samples(20)  |  Call(20)  |  Derive(0)  |  Import(0)

src/l/o/loxigen-HEAD/loxi_output/pyloxi/loxi/of13/message.py   loxigen(Download)
        packed.append(struct.pack("!H", self.table_id))
        packed.append('\x00' * 2)
        packed.append(util.pack_checksum_128(self.checksum))
        packed.append(util.pack_checksum_128(self.checksum_mask))
        length = sum([len(x) for x in packed])
        packed.append(struct.pack("!H", self.table_id))
        packed.append(struct.pack("!H", 0)) # placeholder for key_length at index 7
        packed.append(util.pack_checksum_128(self.checksum))
        packed.append(loxi.generic_util.pack_list(self.key))
        packed[7] = struct.pack("!H", len(packed[-1]))
        packed.append(struct.pack("!H", self.table_id))
        packed.append('\x00' * 2)
        packed.append(util.pack_checksum_128(self.checksum))
        packed.append(util.pack_checksum_128(self.checksum_mask))
        length = sum([len(x) for x in packed])

src/l/o/loxigen-HEAD/loxi_output/pyloxi/loxi/of13/common.py   loxigen(Download)
    def pack(self):
        packed = []
        packed.append(util.pack_checksum_128(self.checksum))
        return ''.join(packed)
 
    def pack(self):
        packed = []
        packed.append(struct.pack("!H", 0)) # placeholder for length at index 0
        packed.append(struct.pack("!H", 0)) # placeholder for key_length at index 1
        packed.append(util.pack_checksum_128(self.checksum))
        packed.append('\x00' * 2)
        packed.append(struct.pack("!L", self.entry_count))
        packed.append(util.pack_checksum_128(self.checksum))
        return ''.join(packed)
 

src/o/f/oftest-HEAD/src/python/loxi/of13/message.py   oftest(Download)
        packed.append(struct.pack("!H", self.table_id))
        packed.append('\x00' * 2)
        packed.append(util.pack_checksum_128(self.checksum))
        packed.append(util.pack_checksum_128(self.checksum_mask))
        length = sum([len(x) for x in packed])
        packed.append(struct.pack("!H", self.table_id))
        packed.append(struct.pack("!H", 0)) # placeholder for key_length at index 7
        packed.append(util.pack_checksum_128(self.checksum))
        packed.append(loxi.generic_util.pack_list(self.key))
        packed[7] = struct.pack("!H", len(packed[-1]))
        packed.append(struct.pack("!H", self.table_id))
        packed.append('\x00' * 2)
        packed.append(util.pack_checksum_128(self.checksum))
        packed.append(util.pack_checksum_128(self.checksum_mask))
        length = sum([len(x) for x in packed])

src/o/f/oftest-HEAD/src/python/loxi/of13/common.py   oftest(Download)
    def pack(self):
        packed = []
        packed.append(util.pack_checksum_128(self.checksum))
        return ''.join(packed)
 
    def pack(self):
        packed = []
        packed.append(struct.pack("!H", 0)) # placeholder for length at index 0
        packed.append(struct.pack("!H", 0)) # placeholder for key_length at index 1
        packed.append(util.pack_checksum_128(self.checksum))
        packed.append('\x00' * 2)
        packed.append(struct.pack("!L", self.entry_count))
        packed.append(util.pack_checksum_128(self.checksum))
        return ''.join(packed)