#NEWLINE# @ staticmethod #NEWLINE# def _parse_binary( content ) : #NEWLINE# #INDENT# '\n          Consume a binary field.\n            :param content str The content to consume\n            :return: list The collected binary and any remaining content.\n        ' #NEWLINE# length = len ( content ) #NEWLINE# collected = '' #NEWLINE# i = 0 #NEWLINE# for i in range ( 0 , length ) : #NEWLINE# #INDENT# c = collected [ i ] #NEWLINE# if ( ( c == '_' ) or ( c == ',' ) or ( c == ')' ) or ( c == '>' ) or ( c == '}' ) or ( c == ']' ) ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# collected += c #NEWLINE# #UNINDENT# #UNINDENT# return [ collected , content [ ( i + 1 ) : ] ]