Processing cells with the cell_parser() function

The cell_parser() function is the heart of our program. It's responsible for actually extracting the data stored within the cells. As we'll see, varints add another wrinkle to the code; however, for the most part, we're still ultimately parsing binary structures using struct and making decisions based on those values:

173 def cell_parser(wal_dict, x, y, frame):174     """175     The cell_parser function processes WAL cells.176     :param wal_dict: The dictionary containing parsed WAL objects.177     :param x: An integer specifying the current frame.178     :param y: An integer specifying the current cell.179     :param frame: The content within the frame read from the WAL180     file.181     :return: Nothing.182     """

Before ...

Get Learning Python for Forensics - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.