void write64(bool be,void *p,uint64_t d) { if (be) write64be(p,d); else write64le(p,d); }
void writeTo(uint8_t *Buf) override { // An import-by-ordinal slot has MSB 1 to indicate that // this is import-by-ordinal (and not import-by-name). if (Config->is64()) { write64le(Buf + FileOff, (1ULL << 63) | Ordinal); } else { write32le(Buf + FileOff, (1ULL << 31) | Ordinal); } }
void EMUFILE::writedouble(double val) { write64le(double_to_u64(val)); }
void EMUFILE::write64le(u64* val) { write64le(*val); }
void writeTo(uint8_t *Buf) override { // An import-by-ordinal slot has MSB 1 to indicate that // this is import-by-ordinal (and not import-by-name). write64le(Buf + FileOff, (uint64_t(1) << 63) | Ordinal); }
void writeTo(uint8_t *Buf) override { write64le(Buf + FileOff, Thunk->getRVA() + Config->ImageBase); }