node_sys/module/buffer/
mod.rs1mod constants;
2
3pub use crate::{buffer::constants::BufferConstants, class::Buffer};
4use js_sys::{JsString, Uint8Array};
5use wasm_bindgen::prelude::*;
6
7#[wasm_bindgen(module = "buffer")]
8extern {
9 #[allow(non_snake_case)]
10 pub static INSPECT_MAX_BYTES: f64;
11
12 pub static constants: BufferConstants;
13
14 #[wasm_bindgen(js_name = "kMaxLength")]
15 pub static k_max_length: f64;
16
17 pub fn transcode(source: &Uint8Array, from_enc: &JsString, to_enc: &JsString) -> Buffer;
18}