Package ghidra.util
Class GhidraBigEndianDataConverter
- java.lang.Object
- 
- ghidra.util.BigEndianDataConverter
- 
- ghidra.util.GhidraBigEndianDataConverter
 
 
- 
- All Implemented Interfaces:
- DataConverter,- GhidraDataConverter,- java.io.Serializable
 
 public class GhidraBigEndianDataConverter extends BigEndianDataConverter implements GhidraDataConverter - See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description static GhidraBigEndianDataConverterINSTANCE
 - 
Constructor SummaryConstructors Constructor Description GhidraBigEndianDataConverter()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigIntegergetBigInteger(MemBuffer buf, int offset, int size, boolean signed)Generate a little-endian BigInteger value by invoking buf.getBytes at the specified offset.intgetInt(MemBuffer buf, int offset)Generate a little-endian int value by invoking buf.getBytes at the specified offset.longgetLong(MemBuffer buf, int offset)Generate a little-endian long value by invoking buf.getBytes at the specified offset.shortgetShort(MemBuffer buf, int offset)Generate a little-endian short value by invoking buf.getBytes at the specified offset.- 
Methods inherited from class ghidra.util.BigEndianDataConvertergetBigInteger, getBigInteger, getBytes, getBytes, getBytes, getBytes, getBytes, getBytes, getBytes, getBytes, getBytes, getBytes, getBytes, getBytes, getInt, getInt, getLong, getLong, getShort, getShort, getValue, getValue, putBigInteger, putBigInteger, putInt, putInt, putLong, putLong, putShort, putShort
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface ghidra.util.DataConvertergetBigInteger, getBigInteger, getBytes, getBytes, getBytes, getBytes, getBytes, getBytes, getBytes, getBytes, getBytes, getBytes, getBytes, getBytes, getInt, getInt, getLong, getLong, getShort, getShort, getValue, getValue, putBigInteger, putBigInteger, putInt, putInt, putLong, putLong, putShort, putShort
 
- 
 
- 
- 
- 
Field Detail- 
INSTANCEpublic static final GhidraBigEndianDataConverter INSTANCE 
 
- 
 - 
Method Detail- 
getShortpublic final short getShort(MemBuffer buf, int offset) throws MemoryAccessException Description copied from interface:GhidraDataConverterGenerate a little-endian short value by invoking buf.getBytes at the specified offset.- Specified by:
- getShortin interface- GhidraDataConverter
- Returns:
- little-endian short value
- Throws:
- MemoryAccessException- if failed to read 2-bytes at the specified offset
 
 - 
getIntpublic final int getInt(MemBuffer buf, int offset) throws MemoryAccessException Description copied from interface:GhidraDataConverterGenerate a little-endian int value by invoking buf.getBytes at the specified offset.- Specified by:
- getIntin interface- GhidraDataConverter
- Returns:
- little-endian int value
- Throws:
- MemoryAccessException- if failed to read 4-bytes at the specified offset
 
 - 
getLongpublic final long getLong(MemBuffer buf, int offset) throws MemoryAccessException Description copied from interface:GhidraDataConverterGenerate a little-endian long value by invoking buf.getBytes at the specified offset.- Specified by:
- getLongin interface- GhidraDataConverter
- Returns:
- little-endian long value
- Throws:
- MemoryAccessException- if failed to read 8-bytes at the specified offset
 
 - 
getBigIntegerpublic final java.math.BigInteger getBigInteger(MemBuffer buf, int offset, int size, boolean signed) throws MemoryAccessException Description copied from interface:GhidraDataConverterGenerate a little-endian BigInteger value by invoking buf.getBytes at the specified offset.- Specified by:
- getBigIntegerin interface- GhidraDataConverter
- Returns:
- little-endian BigInteger value
- Throws:
- MemoryAccessException- if failed to read specified number of bytes at the specified offset
 
 
- 
 
-