parameters: (self)
return_statement: return result
docstring: Consumes a byte array value.
  
      Returns:
        The array parsed (as a string).
  
      Raises:
        ParseError: If a byte array value couldn't be consumed.
docstring_summary: Consumes a byte array value.
docstring_tokens: Consumes a byte array value .
function: def ConsumeByteString(self):
      """Consumes a byte array value.
  
      Returns:
        The array parsed (as a string).
  
      Raises:
        ParseError: If a byte array value couldn't be consumed.
      """
      text = self.token
      if len(text) < 1 or text[0] not in ('\'', '"'):
        raise self._ParseError('Exptected string.')
  
      if len(text) < 2 or text[-1] != text[0]:
        raise self._ParseError('String missing ending quote.')
  
      try:
        result = _CUnescape(text[1:-1])
      except ValueError, e:
        raise self._ParseError(str(e))
      self.NextToken()
      return result
function_tokens: def ConsumeByteString ( self ) : text = self . token if len ( text ) < 1 or text [ 0 ] not in ( '\'' , '"' ) : raise self . _ParseError ( 'Exptected string.' ) if len ( text ) < 2 or text [ - 1 ] != text [ 0 ] : raise self . _ParseError ( 'String missing ending quote.' ) try : result = _CUnescape ( text [ 1 : - 1 ] ) except ValueError , e : raise self . _ParseError ( str ( e ) ) self . NextToken ( ) return result