Class Memory


  • public abstract class Memory
    extends java.lang.Object
    • Constructor Detail

      • Memory

        protected Memory​(Memory.Kind kind,
                         java.lang.String name,
                         Type type,
                         java.math.BigInteger length,
                         boolean isAlias)
      • Memory

        protected Memory​(Memory other)
    • Method Detail

      • def

        public static Memory def​(Memory.Kind kind,
                                 java.lang.String name,
                                 Type type,
                                 java.math.BigInteger length)
      • def

        public static Memory def​(Memory.Kind kind,
                                 java.lang.String name,
                                 Type type,
                                 long length,
                                 Memory memory,
                                 int min,
                                 int max)
      • def

        public static Memory def​(Memory.Kind kind,
                                 java.lang.String name,
                                 Type type,
                                 java.math.BigInteger length,
                                 Memory memory,
                                 int min,
                                 int max)
      • getIndexBitSize

        protected static int getIndexBitSize​(int count)
      • initAllocator

        public void initAllocator​(int addressableUnitBitSize,
                                  java.math.BigInteger baseAddress)
      • getName

        public final java.lang.String getName()
      • getType

        public final Type getType()
      • getLength

        public final java.math.BigInteger getLength()
      • isAlias

        public final boolean isAlias()
      • getAddressBitSize

        public final int getAddressBitSize()
      • access

        public final Location access()
      • access

        public abstract Location access​(int address)
      • access

        public abstract Location access​(long address)
      • access

        public abstract Location access​(java.math.BigInteger address)
      • access

        public abstract Location access​(Data address)
      • copy

        public abstract Memory copy()
      • reset

        public abstract void reset()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object