The type_helper() function is responsible for extracting the payload based on the types of values in the data. While consisting of many lines of code, it's really no more than a series of conditional statements that, if one is True, dictates how the data is processed:
298 def type_helper(types, data):299 """300 The type_helper function decodes the serial type of the301 Varints in the WAL file.302 :param types: The processed values of the Varints.303 :param data: The raw data in the cell that needs to be304 properly decoded via its varint values.305 :return: cell_data, a list of the processed data.306 """
On lines 307 and 308, we create the list that will store the extracted payload data ...