GO-V.ORG
As seen in

Search e01

One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.

18 results across 6 corpora for Converting WebAssembly text format to binary.

Encyclopedia 0

Books 0

Papers 6

Wikidata 6

Developer library 6

nearest: Wasm numeric instruction

The **`nearest`** [numeric instruction](/docs/WebAssembly/Reference/Numeric) is used for rounding the value of a floating point number to the nearest whole number. tabbed-standard ```wat interactive-example (module (import "console" "log" (func $log (param f32))) (func $main f32.const 2.7 ;; load a number onto the stack f32.nearest ;; round to the nearest integer call $log ;; log the result )

trunc: Wasm numeric instruction

The **`trunc`** [numeric instruction](/docs/WebAssembly/Reference/Numeric), short for _truncate_, is used for getting the value of a floating point number without its fractional part. `trunc` differs from [**`floor`**](/docs/WebAssembly/Reference/Numeric/floor) when used on negative numbers — `floor` will round down in those cases while `trunc` will round up. There are separate truncate instructions that truncate t

null: Wasm reference instruction

The **`ref.null`** [reference instruction](/docs/WebAssembly/Reference/Reference) creates a null reference of a given heap type. tabbed-taller ```wat interactive-example (module (import "console" "log" (func $log (param externref))) (func $main ref.null extern call $log ;; log a null externref ) (start $main) ) ``` ```js interactive-example const url = "{%wasm-url%}"; await WebAssembly.instantiateS

is_null: Wasm reference instruction

The **`ref.is_null`** [reference instruction](/docs/WebAssembly/Reference/Reference) checks whether a reference is null. tabbed-taller ```wat interactive-example (module (import "console" "log" (func $log (param i32))) (func $f) (elem declare func $f) (func $main ref.null func ref.is_null call $log ;; log 1: the reference is null ref.func $f ref.is_null call $log ;; log 0: the refer

as_non_null: Wasm reference instruction

The **`ref.as_non_null`** [reference instruction](/docs/WebAssembly/Reference/Reference) converts a nullable reference into a non-nullable one, trapping if the reference is null. tabbed-taller ```wat interactive-example (module (import "console" "log" (func $log (param externref))) (global $greeting (import "js" "greeting") externref) ;; Only accepts non-null references (func $log_non_null (param $value (r

test: Wasm reference instruction

The **`ref.test`** [reference instruction](/docs/WebAssembly/Reference/Reference) checks whether a reference matches a given reference type. tabbed-taller ```wat interactive-example (module (import "console" "log" (func $log (param i32))) (type $point (struct (field i32) (field i32))) (func $main (local $value anyref) (local.set $value (struct.new $point (i32.const 1) (i32.const 2))) (call $log

JSON results · Services directory