def is_frame_magic(data):
    """Unpacks an int and checks whether it matches the EDR frame magic number
    
    Does not roll the reading position back.
    """
    magic = data.unpack_int()
    return magic == -7777777
