Package ghidra.util

Class GhidraLittleEndianDataConverter

    • Constructor Detail

      • GhidraLittleEndianDataConverter

        public GhidraLittleEndianDataConverter()
    • Method Detail

      • getBigInteger

        public final java.math.BigInteger getBigInteger​(MemBuffer buf,
                                                        int offset,
                                                        int size,
                                                        boolean signed)
                                                 throws MemoryAccessException
        Description copied from interface: GhidraDataConverter
        Generate a BigInteger value by invoking buf.getBytes at the specified offset.
        Specified by:
        getBigInteger in interface GhidraDataConverter
        Parameters:
        buf - MemBuffer source of bytes
        offset - offset in mem buffer to read
        size - number of bytes
        signed - boolean flag
        Returns:
        BigInteger value
        Throws:
        MemoryAccessException - if failed to read specified number of bytes at the specified offset