Skip to main content

byte_set

Function byte_set 

Source
pub fn byte_set(recv: &Value, index: &str, val: &Value) -> bool
Expand description

buf[i] = n — write one byte (truncated to 8 bits, as a Uint8Array does). Returns whether recv was a Buffer and the write landed.

Writes the single element in place; the old path copied the buffer out, changed one byte, and wrote every byte back.