Lines Matching refs:unpack
461 pattern_offset = struct.unpack('<I', pattern_data[8:12])[0]
462 entry = struct.unpack('<I', pattern_data[16 + ix * 4: 16 + ix * 4 + 4])[0]
470 (char_mask, link_shift, link_mask, pattern_shift) = struct.unpack('<4I', trie_data[4:20])
471 node_entry = struct.unpack('<I', trie_data[24 + ix * 4: 24 + ix * 4 + 4])[0]
482 code = struct.unpack('B', pat[pat_off : pat_off + 1])[0]
503 edge_entry = struct.unpack('<I', trie_data[24 + (ix + ch) * 4: 24 + (ix + ch) * 4 + 4])[0]
519 (magic, version, alphabet_off, trie_off, pattern_off, file_size) = struct.unpack('<6I', header)
525 alphabet_version = struct.unpack('<I', alphabet_data[:4])[0]
528 (min_ch, max_ch) = struct.unpack('<2I', alphabet_data[4:12])
531 b = struct.unpack('B', alphabet_data[offset : offset + 1])[0]
536 n_entries = struct.unpack('<I', alphabet_data[4:8])[0]
538 entry = struct.unpack('<I', alphabet_data[8 + 4 * i: 8 + 4 * i + 4])[0]