WasmTransformer

0.0.2

A Swift package for reading, writing, and transformation of WebAssembly binaries
swiftwasm/WasmTransformer

What's New

2020-11-06T13:57:45Z

Release stripCustomSections which strips all custom sections.

WasmTransformer

Test

A package which provides transformation operation for WebAssembly binary. Inspired by Rust implementation

lowerI64Imports

public func lowerI64Imports(_ input: [UInt8]) throws -> [UInt8]

Inserts trampoline functions for imports that have i64 params or returns. This is useful for running Wasm modules in browsers that do not support JavaScript BigInt -> Wasm i64 integration. Especially in the case for i64 WASI Imports.

stripCustomSections

public func stripCustomSections(_ input: [UInt8]) throws -> [UInt8]

Strip all custom sections from input WebAssembly binary.

Description

  • Swift Tools 5.2.0
View More Packages from this Author

Dependencies

  • None
Last updated: Wed Nov 09 2022 06:09:44 GMT-0500 (GMT-05:00)