node_sys/module/buffer/constants.rs
1use js_sys::Object;
2use wasm_bindgen::prelude::*;
3
4#[wasm_bindgen]
5extern {
6 #[wasm_bindgen(extends = Object)]
7 #[derive(Clone, Debug)]
8 pub type BufferConstants;
9
10 #[allow(non_snake_case)]
11 #[wasm_bindgen(method, getter)]
12 pub fn MAX_LENGTH(this: &BufferConstants) -> f64;
13
14 #[allow(non_snake_case)]
15 #[wasm_bindgen(method, getter)]
16 pub fn MAX_STRING_LENGTH(this: &BufferConstants) -> f64;
17}