Lines Matching refs:pack
123 return b''.join(struct.pack('B', x) for x in pattern)
191 def pack(self, node_list, ch_map, use_node=False): member in Hyph
308 return struct.pack('<6I', *data)
321 result = [struct.pack('<3I', 0, min_ch, max_ch + 1)]
323 result.append(struct.pack('<B', b))
327 result = [struct.pack('<2I', 1, len(ch_map))]
330 result.append(struct.pack('<I', data))
346 result = [struct.pack('<6I', 0, char_mask, link_shift, link_mask, pattern_shift, n_trie)]
365 result.append(struct.pack('<I', packed))
394 result = [struct.pack('<4I', *data)]
396 result.append(struct.pack('<I', x))
404 n_trie = hyph.pack(dedup_nodes, ch_map)