public Instance()

in shenyu-wasm-runtime/src/main/java/org/apache/shenyu/wasm/Instance.java [47:57]


    public Instance(final byte[] moduleBytes) {
        // Native bindings.
        Native.init();
        this.exports = new Exports(this);
        
        long instancePointer = this.nativeInstantiate(this, moduleBytes);
        this.instancePointer = instancePointer;
        
        nativeInitializeExportedFunctions(instancePointer);
        nativeInitializeExportedMemories(instancePointer);
    }