Skip to content
#

binding-generator

Here are 36 public repositories matching this topic...

mstange
mstange commented Jul 5, 2019

Motivation

I am using the following pattern to efficiently initialize a large buffer inside wasm memory from JavaScript without copies (see #1079 for full motivation):

#[wasm_bindgen]
pub struct WasmMemBuffer {
    buffer: Vec<u8>,
}

#[wasm_bindgen]
impl WasmMemBuffer {
    #[wasm_bindgen(constructor)]
    pub fn new(byte_length: u32, f: &js_sys::Function) -> Self {
  
ranocha
ranocha commented Jul 19, 2021

We are experimenting with the current master branch of Clang.jl in trixi-framework/P4est.jl#38. I noticed that there is no REPL tab completion for properties and structs defined automatically by Clang.jl (via field_access_method_list in the TOML file). For example, we get the following Julia code in the PR listed above.

struct p4est
    mpicomm::sc_MPI_Comm

Improve this page

Add a description, image, and links to the binding-generator topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the binding-generator topic, visit your repo's landing page and select "manage topics."

Learn more