node/lib/metasm/metasm/exe_format/serialstruct.rb
# displays the struct content, ordered by fields
displays the struct content, ordered by fields
displays the struct content ordered by fields
def to_s(a=[])
		ivs = instance_variables.map { |iv| iv.to_sym }
		ivs = (struct_fields.to_a.map { |f| f[NAME] }.compact & ivs) | ivs
		"<#{self.class} " + ivs.map { |iv| "#{iv}=#{dump(instance_variable_get(iv), a+[self])}" }.join(' ') + ">"
	end
def to_s ( a = [ ] ) ivs = instance_variables . map { | iv | iv . to_sym } ivs = ( struct_fields . to_a . map { | f | f [ NAME ] } . compact & ivs ) | ivs "<#{self.class} " + ivs . map { | iv | "#{iv}=#{dump(instance_variable_get(iv), a+[self])}" } . join ( ' ' ) + ">" end
displays the struct content, ordered by fields
displays the struct content ordered by fields
a