Class FunctionSection


  • public class FunctionSection
    extends Section
    • Constructor Detail

      • FunctionSection

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

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

      • functionCount

        public int functionCount()
      • getFunctionType

        public int getFunctionType​(int idx)
      • addFunctionType

        public int addFunctionType​(int typeIndex)
        Add a function type index to this section.
        Parameters:
        typeIndex - the type index to add (should be a valid index into the type section)
        Returns:
        the index of the function whose type index was added