Skip to main content

from_bytes

Function from_bytes 

Source
pub fn from_bytes(bytes: &[u8]) -> Value
Expand description

Build a Buffer value from raw bytes.

Every Buffer is a VIEW: the bytes live in an ArrayBuffer (its .buffer) and the Buffer shares that store. It used to own a private array with no buffer behind it, so buf.buffer threw on every Buffer node-js made.