def add_field(self, name, fragment_size=<NUM_LIT>, number_of_fragments=<NUM_LIT:3>, fragment_offset=None, order="<STR_LIT>", type=None):
data = {}<EOL>if fragment_size:<EOL><INDENT>data['<STR_LIT>'] = fragment_size<EOL><DEDENT>if number_of_fragments is not None:<EOL><INDENT>data['<STR_LIT>'] = number_of_fragments<EOL><DEDENT>if fragment_offset is not None:<EOL><INDENT>data['<STR_LIT>'] = fragment_offset<EOL><DEDENT>if type is not None:<EOL><INDENT>data['<STR_LIT:type>'] = type<EOL><DEDENT>data['<STR_LIT>'] = order<EOL>self.fields[name] = data<EOL>
Add a field to Highlinghter