Package ghidra.util

Class GhidraBigEndianDataConverter

    • Constructor Detail

      • GhidraBigEndianDataConverter

        public GhidraBigEndianDataConverter()
    • 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