mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 02:09:44 +02:00
GT-3512 cleanup DataConverter interface and BE/LE impls
This commit is contained in:
parent
283e148b26
commit
b6bea0fb39
33 changed files with 539 additions and 666 deletions
|
@ -395,9 +395,7 @@ public class MachoProcessBindScript extends GhidraScript {
|
|||
|
||||
long offset = symbol.getAddress().getOffset();
|
||||
|
||||
DataConverter converter = currentProgram.getLanguage().isBigEndian() ?
|
||||
new BigEndianDataConverter() :
|
||||
new LittleEndianDataConverter();
|
||||
DataConverter converter = DataConverter.getInstance(currentProgram.getLanguage().isBigEndian());
|
||||
|
||||
if ( currentProgram.getDefaultPointerSize() == 8 ) {
|
||||
setBytes( getAddress(), converter.getBytes( offset ) );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue