MCPcopy Create free account

hub / github.com/danbugs/serverside-wasm-book-code / functions

Functions119 in github.com/danbugs/serverside-wasm-book-code

↓ 12 callersFunctionwit_import
(_: *mut u8, _: usize, _: i32, _: i32, _: *mut u8)
chapter05/smart_cms/smartcms_ml_guest/src/bindings.rs:913
↓ 12 callersFunctionwit_import
(_: *mut u8, _: usize, _: i32, _: i32, _: *mut u8)
chapter05/wasi_nn_example/src/bindings.rs:891
↓ 9 callersMethodhandle
(&self)
chapter05/smart_cms/smartcms_ml_guest/src/bindings.rs:141
↓ 9 callersMethodhandle
(&self)
chapter05/wasi_nn_example/src/bindings.rs:91
↓ 6 callersFunctiondataView
chapter03/smart_cms/smartcms_kvstore_guest/transpile/guest.js:6
↓ 6 callersFunctioninvalid_enum_discriminant
()
chapter05/smart_cms/smartcms_ml_guest/src/bindings.rs:1105
↓ 6 callersFunctioninvalid_enum_discriminant
()
chapter05/wasi_nn_example/src/bindings.rs:1062
↓ 4 callersMethoddata
Return the tensor data.
chapter05/wasi_nn_example/src/bindings.rs:219
↓ 4 callersMethodget
(&mut self, key: String)
chapter04/smart_cms/smartcms_test_host/src/main.rs:11
↓ 2 callersFunctionbase64Compile
chapter03/smart_cms/smartcms_kvstore_guest/transpile/guest.js:3
↓ 2 callersFunctionhello_world
()
chapter04/composability/composability_bin/src/bindings.rs:4
↓ 2 callersMethodset
(&mut self, key: String, value: String)
chapter04/smart_cms/smartcms_test_host/src/main.rs:15
↓ 1 callersFunctionbytes_to_f32_vec
Function to convert bytes to f32 vector
chapter05/smart_cms/smartcms_ml_guest/src/lib.rs:88
↓ 1 callersFunctionbytes_to_f32_vec
(data: &[u8])
chapter05/wasi_nn_example/src/main.rs:56
↓ 1 callersFunctioncabi_dealloc
(ptr: *mut u8, size: usize, align: usize)
chapter04/wasi02/wasi02_lib/src/bindings.rs:54
↓ 1 callersFunctioncabi_dealloc
(ptr: *mut u8, size: usize, align: usize)
chapter04/smart_cms/smartcms_ml_guest/src/bindings.rs:54
↓ 1 callersFunctioncabi_dealloc
(ptr: *mut u8, size: usize, align: usize)
chapter04/composability/composability_lib/src/bindings.rs:54
↓ 1 callersFunctioncabi_dealloc
(ptr: *mut u8, size: usize, align: usize)
chapter05/smart_cms/smartcms_ml_guest/src/bindings.rs:1118
↓ 1 callersMethodcompute
Compute the inference on the given inputs. Note the expected sequence of calls: `set-input`, `compute`, `get-output`. TODO: this expectation could be
chapter05/smart_cms/smartcms_ml_guest/src/bindings.rs:579
↓ 1 callersMethodcompute
Compute the inference on the given inputs. Note the expected sequence of calls: `set-input`, `compute`, `get-output`. TODO: this expectation could be
chapter05/wasi_nn_example/src/bindings.rs:551
↓ 1 callersMethoddata
Return the tensor data.
chapter05/smart_cms/smartcms_ml_guest/src/bindings.rs:261
↓ 1 callersFunctionfetchCompile
(url)
chapter03/smart_cms/smartcms_kvstore_guest/transpile/guest.js:10
↓ 1 callersFunctionfib
(n)
chapter08/scaling-spin/src/index.js:13
↓ 1 callersMethodget_output
Extract the outputs after inference.
chapter05/smart_cms/smartcms_ml_guest/src/bindings.rs:621
↓ 1 callersMethodget_output
Extract the outputs after inference.
chapter05/wasi_nn_example/src/bindings.rs:595
↓ 1 callersFunctionimage_to_tensor
(path: &str, height: u32, width: u32)
chapter05/wasi_nn_example/src/main.rs:62
↓ 1 callersFunctionload
Load a `graph` from an opaque sequence of bytes to use for inference.
chapter05/smart_cms/smartcms_ml_guest/src/bindings.rs:871
↓ 1 callersFunctionload
Load a `graph` from an opaque sequence of bytes to use for inference.
chapter05/wasi_nn_example/src/bindings.rs:849
↓ 1 callersFunctionrunNext
(value)
chapter03/smart_cms/smartcms_kvstore_guest/transpile/guest.js:112
↓ 1 callersFunctionrun_ctors_once
()
chapter04/wasi02/wasi02_lib/src/bindings.rs:51
↓ 1 callersFunctionrun_ctors_once
()
chapter04/smart_cms/smartcms_ml_guest/src/bindings.rs:51
↓ 1 callersFunctionrun_ctors_once
()
chapter04/composability/composability_lib/src/bindings.rs:51
↓ 1 callersFunctionrun_ctors_once
()
chapter05/smart_cms/smartcms_ml_guest/src/bindings.rs:1115
↓ 1 callersMethodset
(&mut self, key: String, value: String)
chapter03/smart_cms/smartcms_test_host/src/main.rs:15
↓ 1 callersMethodset_input
Define the inputs to use for inference.
chapter05/smart_cms/smartcms_ml_guest/src/bindings.rs:524
↓ 1 callersMethodset_input
Define the inputs to use for inference.
chapter05/wasi_nn_example/src/bindings.rs:484
↓ 1 callersFunctionsoftmax
Softmax function
chapter05/smart_cms/smartcms_ml_guest/src/lib.rs:95
↓ 1 callersFunctionstring_lift
(bytes: Vec<u8>)
chapter04/composability/composability_bin/src/bindings.rs:32
↓ 1 callersFunctionstring_lift
(bytes: Vec<u8>)
chapter05/smart_cms/smartcms_ml_guest/src/bindings.rs:1098
↓ 1 callersFunctionstring_lift
(bytes: Vec<u8>)
chapter05/wasi_nn_example/src/bindings.rs:1055
↓ 1 callersMethodtake_handle
(&self)
chapter05/smart_cms/smartcms_ml_guest/src/bindings.rs:136
↓ 1 callersMethodtake_handle
(&self)
chapter05/wasi_nn_example/src/bindings.rs:87
↓ 1 callersFunctionutf8Encode
(s, realloc, memory)
chapter03/smart_cms/smartcms_kvstore_guest/transpile/guest.js:25
↓ 1 callersFunctionwit_import
(_: *mut u8)
chapter04/composability/composability_bin/src/bindings.rs:18
Function__link_custom_section_describing_imports
()
chapter04/wasi02/wasi02_lib/src/bindings.rs:106
Function__link_custom_section_describing_imports
()
chapter04/wasi02/hello_world_wasi02/src/bindings.rs:16
Function__link_custom_section_describing_imports
()
chapter04/smart_cms/smartcms_ml_guest/src/bindings.rs:106
Function__link_custom_section_describing_imports
()
chapter04/composability/composability_bin/src/bindings.rs:54
Function__link_custom_section_describing_imports
()
chapter04/composability/composability_lib/src/bindings.rs:106
Function__link_custom_section_describing_imports
()
chapter05/smart_cms/smartcms_ml_guest/src/bindings.rs:1198
Function__link_custom_section_describing_imports
()
chapter05/wasi_nn_example/src/bindings.rs:1112
Function__post_return_hello_world
(arg0: *mut u8)
chapter04/wasi02/wasi02_lib/src/bindings.rs:20
Function__post_return_hello_world
(arg0: *mut u8)
chapter04/composability/composability_lib/src/bindings.rs:20
Function__post_return_storygen
(arg0: *mut u8)
chapter04/smart_cms/smartcms_ml_guest/src/bindings.rs:20
Function__post_return_storygen
(arg0: *mut u8)
chapter05/smart_cms/smartcms_ml_guest/src/bindings.rs:20
Function_export_hello_world_cabi
()
chapter04/wasi02/wasi02_lib/src/bindings.rs:5
Function_export_hello_world_cabi
()
chapter04/composability/composability_lib/src/bindings.rs:5
Function_export_storygen_cabi
()
chapter04/smart_cms/smartcms_ml_guest/src/bindings.rs:5
Function_export_storygen_cabi
()
chapter05/smart_cms/smartcms_ml_guest/src/bindings.rs:5
Method_lift
(val: u8)
chapter05/smart_cms/smartcms_ml_guest/src/bindings.rs:93
Method_lift
(val: u8)
chapter05/wasi_nn_example/src/bindings.rs:50
Methodcode
Return the error code.
chapter05/smart_cms/smartcms_ml_guest/src/bindings.rs:413
Methodcode
Return the error code.
chapter05/wasi_nn_example/src/bindings.rs:376
Methodctx
(&mut self)
chapter04/smart_cms/smartcms_test_host/src/main.rs:26
Methodctx
(&mut self)
chapter04/hello_world_wasi/hello_world_wasi_host/src/main.rs:12
Methodctx
(&mut self)
chapter05/smart_cms/smartcms_test_host/src/main.rs:27
Functiondecrypt
(data: String, key: String)
chapter05/wasm_udf_example/src/lib.rs:11
Methoddimensions
Describe the size of the tensor (e.g., 2x2x2x2 -> [2, 2, 2, 2]). To represent a tensor containing a single value, use `[1]` for the tensor dimensions.
chapter05/smart_cms/smartcms_ml_guest/src/bindings.rs:212
Methoddimensions
Describe the size of the tensor (e.g., 2x2x2x2 -> [2, 2, 2, 2]). To represent a tensor containing a single value, use `[1]` for the tensor dimensions.
chapter05/wasi_nn_example/src/bindings.rs:166
Methoddrop
(_handle: u32)
chapter05/smart_cms/smartcms_ml_guest/src/bindings.rs:148
Methoddrop
(_handle: u32)
chapter05/wasi_nn_example/src/bindings.rs:97
Functionencrypt
(data: String, key: String)
chapter05/wasm_udf_example/src/lib.rs:5
Methodfmt
(&self, f: &mut ::core::fmt::Formatter<'_>)
chapter05/smart_cms/smartcms_ml_guest/src/bindings.rs:78
Methodfmt
( &self, f: &mut ::core::fmt::Formatter<'_>, )
chapter05/wasi_nn_example/src/bindings.rs:33
Methodfrom_handle
(handle: u32)
chapter05/smart_cms/smartcms_ml_guest/src/bindings.rs:129
Methodfrom_handle
(handle: u32)
chapter05/wasi_nn_example/src/bindings.rs:81
Methodget
(&mut self, key: String)
chapter03/smart_cms/smartcms_test_host/src/main.rs:11
Methodget
(&mut self, key: String)
chapter05/smart_cms/smartcms_test_host/src/main.rs:11
Functiongreet
(name)
chapter04/hello_world_wasi/hello_world_wasi_guest/greet.js:1
Functiongreet
(ptr: i32, len: i32)
chapter02/hello_world/hello_world_guest/src/lib.rs:2
Functiongreet
(name)
chapter03/hello_world_component/greet.js:1
Methodhandle
( request: http::IncomingRequest, )
chapter06/smart-cms/src/lib.rs:13
Methodhandle
( _request: http::IncomingRequest, )
chapter06/hello-world-wasmcloud/src/lib.rs:9
Functionhandle_hello_world_spin
(req: Request)
chapter06/hello-world-spin/src/lib.rs:6
Functionhandle_hello_world_spin
(req: Request)
chapter08/hello-world-spin/src/lib.rs:6
Functionhello
()
chapter07/hello-container2wasm/python-wasm-webserver/app.py:6
Methodhello_world
Say hello!
chapter04/wasi02/wasi02_lib/src/lib.rs:10
Methodhello_world
()
chapter04/composability/composability_lib/src/lib.rs:9
Methodinit_execution_context
(&self)
chapter05/smart_cms/smartcms_ml_guest/src/bindings.rs:826
Methodinit_execution_context
( &self, )
chapter05/wasi_nn_example/src/bindings.rs:801
Functionload_by_name
Load a `graph` by name. How the host expects the names to be passed and how it stores the graphs for retrieval via this function is **implementation-
chapter05/smart_cms/smartcms_ml_guest/src/bindings.rs:954
Functionload_by_name
Load a `graph` by name. How the host expects the names to be passed and how it stores the graphs for retrieval via this function is **implementation-
chapter05/wasi_nn_example/src/bindings.rs:932
Functionmain
()
chapter07/hello-wasm-container/src/main.rs:1
Functionmain
()
chapter04/wasi02/hello_world_wasi02/src/main.rs:4
Functionmain
()
chapter04/smart_cms/smartcms_test_host/src/main.rs:37
Functionmain
()
chapter04/composability/composability_bin/src/main.rs:6
Functionmain
()
chapter04/hello_world_wasi/hello_world_wasi_host/src/main.rs:23
Functionmain
()
chapter02/hello_world/hello_world_host/src/main.rs:3
Functionmain
()
chapter03/smart_cms/smartcms_test_host/src/main.rs:24
Functionmain
()
chapter05/smart_cms/smartcms_test_host/src/main.rs:38
next →1–100 of 119, ranked by callers