MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / swap_header

Function swap_header

src/debugmem.cpp:2432–2445  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2430}
2431
2432static void swap_header(struct sheader *d, struct sheader *s)
2433{
2434 memcpy(d, s, sizeof(struct sheader));
2435 lswp(&d->name);
2436 lswp(&d->type);
2437 lswp(&d->flags);
2438 lswp(&d->addr);
2439 lswp(&d->offset);
2440 lswp(&d->size);
2441 lswp(&d->link);
2442 lswp(&d->info);
2443 lswp(&d->addralign);
2444 lswp(&d->entsize);
2445}
2446static void swap_symbol(struct symbol *d, struct symbol *s)
2447{
2448 memcpy(d, s, sizeof(struct symbol));

Callers 1

loadelffileFunction · 0.85

Calls 1

lswpFunction · 0.85

Tested by

no test coverage detected