Skip to main content

raw_view_bytes

Function raw_view_bytes 

Source
pub fn raw_view_bytes(v: &Value) -> Option<Vec<u8>>
Expand description

The raw bytes a typed array VIEWS — length * BYTES_PER_ELEMENT of them from its byteOffset — as opposed to its element values. A Uint16Array([0x4142]) is the two bytes 42 41, never the one byte its element truncates to. None for anything that is not a typed array.