<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def parse(cls, data: bytes) -> 'MessageContent': """Parse the bytestring into message content. Args: data: The bytestring to parse. """

        lines = cls._find_lines(data)
        view = memoryview(data)
        return cls._parse(data, view, lines)