Source File
signature.go
Belonging Package
github.com/tetratelabs/wazero/internal/engine/wazevo/ssa
package ssaimport ()// Signature is a function prototype.type Signature struct {// ID is a unique identifier for this signature used to lookup.ID SignatureID// Params and Results are the types of the parameters and results of the function.Params, Results []Type// used is true if this is used by the currently-compiled function.// Debugging only.used bool}// String implements fmt.Stringer.func ( *Signature) () string {:= strings.Builder{}.WriteString(.ID.String()).WriteString(": ")if len(.Params) > 0 {for , := range .Params {.WriteString(.String())}} else {.WriteByte('v')}.WriteByte('_')if len(.Results) > 0 {for , := range .Results {.WriteString(.String())}} else {.WriteByte('v')}return .String()}// SignatureID is an unique identifier used to lookup.type SignatureID int// String implements fmt.Stringer.func ( SignatureID) () string {return fmt.Sprintf("sig%d", )}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |