We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypedArrays are very helpful in certain situations... for example a Vec<i32> or a Box<[i32]> could be turned into an Int32Array which is very helpful
Vec<i32>
Int32Array
#[deno_bindgen] pub fn mouse_pos(this: usize)-> Box<[i32]> { let this=unsafe { ..... }; let pos=this.mouse_position(); vec![pos.x,pos.y].into_boxed_slice() }
export function mouse_pos(self: number|bigint): Int32Array { return lib.symbols.mouse_pos(self); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
TypedArrays are very helpful in certain situations...
for example a
Vec<i32>
or a Box<[i32]> could be turned into anInt32Array
which is very helpfulRust
denoland
The text was updated successfully, but these errors were encountered: