Explorer

core.wasm-runtime-string-to-bytes

description
Runtime function 11 of the definy compiler: string_to_bytes(string) -> value: the list of the bytes (numbers) of the string. Local variable declarations and instructions, without the byte length (wasm.code-entry adds it)
type
List<Number>
expression
[
  4,
  1,
  @wasm.value-type-ref-null,
  @core.wasm-type-bytes,
  1,
  @wasm.value-type-i32,
  1,
  @wasm.value-type-ref-null,
  @core.wasm-type-values,
  1,
  @wasm.value-type-i32,
  @wasm.local-get,
  0,
  @wasm.gc-prefix,
  @wasm.ref-cast,
  @core.wasm-type-string,
  @wasm.gc-prefix,
  @wasm.struct-get,
  @core.wasm-type-string,
  1,
  @wasm.local-tee,
  1,
  @wasm.gc-prefix,
  @wasm.array-len,
  @wasm.local-tee,
  2,
  @wasm.gc-prefix,
  @wasm.array-new-default,
  @core.wasm-type-values,
  @wasm.local-set,
  3,
  @wasm.i32-const,
  0,
  @wasm.local-set,
  4,
  @wasm.block,
  @wasm.block-type-empty,
  @wasm.loop,
  @wasm.block-type-empty,
  @wasm.local-get,
  4,
  @wasm.local-get,
  2,
  @wasm.i32-ge-u,
  @wasm.br-if,
  1,
  @wasm.local-get,
  3,
  @wasm.local-get,
  4,
  @wasm.local-get,
  1,
  @wasm.local-get,
  4,
  @wasm.gc-prefix,
  @wasm.array-get-u,
  @core.wasm-type-bytes,
  @wasm.i64-extend-i32-u,
  @wasm.call,
  2,
  @wasm.gc-prefix,
  @wasm.array-set,
  @core.wasm-type-values,
  @wasm.local-get,
  4,
  @wasm.i32-const,
  1,
  @wasm.i32-add,
  @wasm.local-set,
  4,
  @wasm.br,
  0,
  @wasm.end,
  @wasm.end,
  @wasm.i32-const,
  3,
  @wasm.local-get,
  3,
  @wasm.gc-prefix,
  @wasm.struct-new,
  @core.wasm-type-list,
  @wasm.end
]
visibility
public
core.wasm-runtime-string-to-bytes (project definy, branch auto-release, snapshot oiQgPqhJm-TbM4kexXeRHBaJB_tS7gwBSewII64P-44)
id: kxZSb0ryWO7IroXK1h_kOqkYQD9U9R_R-BDCzd27hP0
content hash: yigneQrzVpKgU18tu5IQtXEfCnomb4RXaNF5yOLJwLI