Interface IEncodedMemoryArea

All Known Implementing Classes:
AbstractEncodedMemoryArea, DirectEncodedMemoryArea, EncodedMemoryAreaList, FunctionEncodedMemoryArea, VirtualEncodedMemoryArea

public interface IEncodedMemoryArea
Definition of an encoded memory area.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    decode(byte[] code)
    Decode the area from instruction bytes.
    int
    decodeInt(byte[] code)
    Decode the area from instruction bytes as an integer.
    int
    Retrieve the encoded area length in bits.
    shift(int shiftValue)
    Create a shifted encoded area.
  • Method Details

    • getLength

      int getLength()
      Retrieve the encoded area length in bits.
      Returns:
      length in bits
    • decode

      long decode(byte[] code)
      Decode the area from instruction bytes.
      Parameters:
      code - instruction bytes
      Returns:
      decoded value
    • decodeInt

      int decodeInt(byte[] code)
      Decode the area from instruction bytes as an integer.
      Parameters:
      code - instruction bytes
      Returns:
      decoded value
    • shift

      IEncodedMemoryArea shift(int shiftValue)
      Create a shifted encoded area.
      Parameters:
      shiftValue - shift amount in bits
      Returns:
      shifted encoded area