Interface IEncodedMemoryArea
- All Known Implementing Classes:
AbstractEncodedMemoryArea,DirectEncodedMemoryArea,EncodedMemoryAreaList,FunctionEncodedMemoryArea,VirtualEncodedMemoryArea
public interface IEncodedMemoryArea
Definition of an encoded memory 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
Create a shifted encoded area.- Parameters:
shiftValue- shift amount in bits- Returns:
- shifted encoded area
-