Class DataSection


  • public class DataSection
    extends Section
    • Constructor Detail

      • DataSection

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

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

      • dataSegmentCount

        public int dataSegmentCount()
      • getDataSegment

        public DataSegment getDataSegment​(int idx)
      • addDataSegment

        public int addDataSegment​(DataSegment dataSegment)
        Add a data segment definition to this section.
        Parameters:
        dataSegment - the data segment to add to this section (must not be null)
        Returns:
        the index of the newly-added data segment