#NEWLINE# def _processLength( self , lengthMatch ) : #NEWLINE# #INDENT# '\n        Processes the length definition of a netstring.\n\n        Extracts and stores in C{self._expectedPayloadSize} the number\n        representing the netstring size.  Removes the prefix\n        representing the length specification from\n        C{self._remainingData}.\n\n        @raise NetstringParseError: if the received netstring does not\n            start with a number or the number is bigger than\n            C{self.MAX_LENGTH}.\n        @param lengthMatch: A regular expression match object matching\n            a netstring length specification\n        @type lengthMatch: C{re.Match}\n        ' #NEWLINE# endOfNumber = lengthMatch . end ( 1 ) #NEWLINE# startOfData = lengthMatch . end ( 2 ) #NEWLINE# lengthString = self . _remainingData [ : endOfNumber ] #NEWLINE# self . _expectedPayloadSize = ( self . _extractLength ( lengthString ) + 1 ) #NEWLINE# self . _remainingData = self . _remainingData [ lengthString : ]