Class MemorySection


  • public class MemorySection
    extends Section
    • Constructor Detail

      • MemorySection

        public MemorySection()
        Construct a new, empty section instance.
      • MemorySection

        public MemorySection​(int estimatedSize)
        Construct a new, empty section instance.
        Parameters:
        estimatedSize - the estimated number of memories to reserve space for
    • Method Detail

      • memoryCount

        public int memoryCount()
      • getMemory

        public Memory getMemory​(int idx)
      • addMemory

        public int addMemory​(Memory memory)
        Add a memory definition to this section.
        Parameters:
        memory - the memory to add to this section (must not be null)
        Returns:
        the index of the newly-added memory