Class TypeSection


  • public class TypeSection
    extends Section
    • Constructor Detail

      • TypeSection

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

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

      • typeCount

        public int typeCount()
      • addFunctionType

        public int addFunctionType​(FunctionType functionType)
        Add a function type definition to this section.
        Parameters:
        functionType - the function type to add to this section (must not be null)
        Returns:
        the index of the newly-added function type