@classmethod<EOL><INDENT>def _parse_rgn_segment(cls, fptr):<DEDENT>
offset = fptr.tell() - <NUM_LIT:2><EOL>read_buffer = fptr.read(<NUM_LIT:2>)<EOL>length, = struct.unpack('<STR_LIT>', read_buffer)<EOL>nbytes = <NUM_LIT:3> if cls._csiz < <NUM_LIT> else <NUM_LIT:4><EOL>fmt = '<STR_LIT>' if cls._csiz < <NUM_LIT> else '<STR_LIT>'<EOL>read_buffer = fptr.read(nbytes)<EOL>data = struct.unpack(fmt, read_buffer)<EOL>length = length<EOL>crgn = data[<NUM_LIT:0>]<EOL>srgn = data[<NUM_LIT:1>]<EOL>sprgn = data[<NUM_LIT:2>]<EOL>return RGNsegment(crgn, srgn, sprgn, length, offset)<EOL>
Parse the RGN segment.

        Parameters
        ----------
        fptr : file
            Open file object.

        Returns
        -------
        RGNSegment
            The current RGN segment.