Module de.carne.mcd

Interface InstructionIndexParameters

    • Method Detail

      • parameters

        default int parameters()
        Gets this index's parameter dword.

        The parameter dword encodes the individual informations accessible via entryCount(), opcodeBytes() and positionBytes() as follows:
        Bit 32-9: Number of index entries.
        Bit 8-5: Number of bytes per opcode entry - 1
        Bit 4-1: Number of bytes per position entry - 1

        Returns:
        this index's parameter dword.
        See Also:
        entryCount(), opcodeBytes(), positionBytes()
      • entryCount

        int entryCount()
        Gets the number instructions stored in this index.
        Returns:
        the number instructions stored in this index.
      • opcodeBytes

        int opcodeBytes()
        Gets the number of bytes used to encode an InstructionOpcode in the index's lookup table.
        Returns:
        the number of bytes used to encode an InstructionOpcode in the index's lookup table.
      • positionBytes

        int positionBytes()
        Gets the number of bytes used to encode a file position in the index's lookup table.
        Returns:
        the number of bytes used to encode a file position in the index's lookup table.