writeToStringBuffer method

  1. @override
void writeToStringBuffer(
  1. StringBuffer buffer
)

Implementation

@override
void writeToStringBuffer(StringBuffer buffer) {
  buffer
    ..writeln('-----------------------------------------------------')
    ..writeln('             ELF header information')
    ..writeln('-----------------------------------------------------')
    ..writeln();
  _header.writeToStringBuffer(buffer);
  buffer
    ..writeln()
    ..writeln()
    ..writeln('-----------------------------------------------------')
    ..writeln('            Program header information')
    ..writeln('-----------------------------------------------------')
    ..writeln();
  _programHeader.writeToStringBuffer(buffer);
  buffer
    ..writeln()
    ..writeln()
    ..writeln('-----------------------------------------------------')
    ..writeln('            Section header information')
    ..writeln('-----------------------------------------------------')
    ..writeln();
  _sectionHeader.writeToStringBuffer(buffer);
  buffer
    ..writeln()
    ..writeln()
    ..writeln('-----------------------------------------------------')
    ..writeln('                 Section information')
    ..writeln('-----------------------------------------------------')
    ..writeln();
  for (final entry in _sectionHeader.entries) {
    _sections[entry]!.writeToStringBuffer(buffer);
    buffer.writeln();
  }
}