This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::mem; | |
/// Struct that can be used to store a vector of bytes and sent | |
/// to JS | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct JsBytes { | |
ptr: u32, | |
len: u32, | |
} |
OlderNewer