Kwasm.validation.module
package kwasm.validation.module
Classes
Name | Description |
---|---|
object DataSegmentValidator
|
Validator of DataSegment nodes. From the docs:
|
object ElementSegmentValidator
|
Validator of ElementSegment nodes. From the docs:
|
object ExportValidator
|
Validator of Export nodes. From the docs:
|
object ExportDescriptorValidator
|
Validator of ExportDescriptor nodes. From the docs:
|
object GlobalValidator
|
Validator of Global nodes. From the docs:
|
object ImportValidator
|
Validator of Import nodes. From the docs:
|
object ImportDescriptorValidator
|
Validator of ImportDescriptor nodes. From the docs:
|
object MemoryValidator
|
Validator of Memory nodes. From the docs:
|
object ModuleValidator
|
Validator of WasmModules. From the docs: Modules are classified by their mapping from the external types of their imports to those of their exports. A module is entirely closed, that is, its components can only refer to definitions that appear
in the module itself. Consequently, no initial context is required. Instead, the context KWasm Note: The validation context will be passed to the ModuleValidator
|
object StartFunctionValidator
|
Validator of StartFunction nodes. From the docs:
|
object TableValidator
|
Validator of Table nodes. From the docs:
|
object WasmFunctionValidator
|
Validator of WasmFunction nodes. From the docs:
|
Methods
validate
fun DataSegment.validate(context: Module): Module
Receiver
Name | Description |
---|---|
DataSegment
|
Parameters
Name | Description |
---|---|
context: Module
|
ReturnValue
Name | Description |
---|---|
Module
|
validate
fun ElementSegment.validate(context: Module): Module
Validates the ElementSegment node.
Receiver
Name | Description |
---|---|
ElementSegment
|
Parameters
Name | Description |
---|---|
context: Module
|
ReturnValue
Name | Description |
---|---|
Module
|
validate
fun Export.validate(context: Module): Module
Validates the Export node.
Receiver
Name | Description |
---|---|
Export
|
Parameters
Name | Description |
---|---|
context: Module
|
ReturnValue
Name | Description |
---|---|
Module
|
validate
fun ExportDescriptor<*>.validate(context: Module): Module
Validates the ExportDescriptor node.
Receiver
Name | Description |
---|---|
ExportDescriptor<*>
|
Parameters
Name | Description |
---|---|
context: Module
|
ReturnValue
Name | Description |
---|---|
Module
|
validate
fun Global.validate(context: Module): Module
Validates the Global node.
Receiver
Name | Description |
---|---|
Global
|
Parameters
Name | Description |
---|---|
context: Module
|
ReturnValue
Name | Description |
---|---|
Module
|
validate
fun Import.validate(context: Module): Module
Validates the Import node.
Receiver
Name | Description |
---|---|
Import
|
Parameters
Name | Description |
---|---|
context: Module
|
ReturnValue
Name | Description |
---|---|
Module
|
validate
fun ImportDescriptor.validate(context: Module): Module
Validates the ImportDescriptor node.
Receiver
Name | Description |
---|---|
ImportDescriptor
|
Parameters
Name | Description |
---|---|
context: Module
|
ReturnValue
Name | Description |
---|---|
Module
|
validate
fun Memory.validate(context: Module): Module
Validates the Memory node.
Receiver
Name | Description |
---|---|
Memory
|
Parameters
Name | Description |
---|---|
context: Module
|
ReturnValue
Name | Description |
---|---|
Module
|
validate
fun WasmModule.validate(context: Module): Module
Validates a WasmModule.
This is the main entry point into the validation process.
Receiver
Name | Description |
---|---|
WasmModule
|
Parameters
Name | Description |
---|---|
context: Module
|
ReturnValue
Name | Description |
---|---|
Module
|
validate
fun StartFunction.validate(context: Module): Module
Validates the StartFunction node.
Receiver
Name | Description |
---|---|
StartFunction
|
Parameters
Name | Description |
---|---|
context: Module
|
ReturnValue
Name | Description |
---|---|
Module
|
validate
fun Table.validate(context: Module): Module
Validates the Table node.
Receiver
Name | Description |
---|---|
Table
|
Parameters
Name | Description |
---|---|
context: Module
|
ReturnValue
Name | Description |
---|---|
Module
|
validate
fun WasmFunction.validate(context: Module): Module
Validates the WasmFunction node.
Receiver
Name | Description |
---|---|
WasmFunction
|
Parameters
Name | Description |
---|---|
context: Module
|
ReturnValue
Name | Description |
---|---|
Module
|
Validates the DataSegment node.