fromReader static method
Symbol
fromReader(
- Reader reader
)
Implementation
static Symbol fromReader(Reader reader) {
final wordSize = reader.wordSize;
final nameIndex = _readElfWord(reader);
late int info;
late int other;
late int sectionIndex;
if (wordSize == 8) {
info = reader.readByte();
other = reader.readByte();
sectionIndex = _readElfSection(reader);
}
final value = _readElfAddress(reader);
final size = _readElfNative(reader);
if (wordSize == 4) {
info = reader.readByte();
other = reader.readByte();
sectionIndex = _readElfSection(reader);
}
return Symbol._(
nameIndex, info, other, sectionIndex, value, size, wordSize);
}