int GetElfBitWidth(FileInterface elf) { if (elf.PeekByte(0x04) == 0x1) { return(32); } if (elf.PeekByte(0x04) == 0x2) { return(64); } return(32); }
bool IsElfBigEndian(FileInterface elf) { if (elf.PeekByte(0x5) == 0x1) { return(false); } else { return(true); } }