import struct


def _get_footer_size(file_obj):
    """Read the footer size in bytes, which is serialized as little endian."""
    file_obj.seek(-8, 2)
    tup = struct.unpack(b"<i", file_obj.read(4))
    return tup[0]