Class GlobalsSection

    • Field Detail

      • globals

        private final java.util.List<Global> globals
    • Constructor Detail

      • GlobalsSection

        GlobalsSection​(Module aModule)
    • Method Detail

      • newMutableGlobal

        public Global newMutableGlobal​(java.lang.String name,
                                       WasmType type,
                                       WasmValue initializer)
      • newConstantGlobal

        public Global newConstantGlobal​(java.lang.String name,
                                        WasmType type,
                                        WasmValue initializer)
      • writeTo

        public void writeTo​(TextWriter textWriter)
                     throws java.io.IOException
        Throws:
        java.io.IOException