Class CodeSection


  • public class CodeSection
    extends Section
    • Constructor Detail

      • CodeSection

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

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

      • functionBodyCount

        public int functionBodyCount()
      • getFunctionBody

        public FunctionBody getFunctionBody​(int idx)
      • addFunctionBody

        public int addFunctionBody​(FunctionBody functionBody)
        Add a function body to this section.
        Parameters:
        functionBody - the function body to add to this section (must not be null)
        Returns:
        the index of the newly-added function body