#NEWLINE# def payloadRange( self ) : #NEWLINE# #INDENT# "Return a two-tuple representing the (start, end) positions of this\n        cell's payload data (based on Link Protocol version in use).\n\n        :returns: **tuple, int** (start, end) indices of payload.\n        " #NEWLINE# if ( 1 <= fmt . header . link_version <= 3 ) : #NEWLINE# #INDENT# return ( DEF . PAYLOAD_START_V3 , DEF . FIXED_LEN_V3_LEN ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . header . link_version <= 4 ) : #NEWLINE# #INDENT# return ( DEF . PAYLOAD_START_V4 , DEF . FIXED_LEN_V4_LEN ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# fmt = "The cell's link version is invalid: {}" #NEWLINE# raise ValueError ( fmt . format ( self . header . link_version ) )