MCPcopy Create free account
hub / github.com/dispatchrun/wzprof / wasmHasCustomSection

Function wasmHasCustomSection

wasmbin.go:10–12  ·  view source on GitHub ↗

Returns true if the wasm module binary b contains a custom section with this name.

(b []byte, name string)

Source from the content-addressed store, hash-verified

8// Returns true if the wasm module binary b contains a custom section with this
9// name.
10func wasmHasCustomSection(b []byte, name string) bool {
11 return wasmCustomSection(b, name) != nil
12}
13
14// Returns the byte content of a custom section with name, or nil.
15func wasmCustomSection(b []byte, name string) []byte {

Callers 1

binCompiledByGoFunction · 0.85

Calls 1

wasmCustomSectionFunction · 0.85

Tested by

no test coverage detected