Skip to main content

add_size

Function add_size 

Source
pub fn add_size(_buf: &mut LuaBuffer, sz: usize)
Expand description

Append sz to the length counter (used after writing directly into the buffer).

Currently a no-op: Vec’s length is implicit, so this only matters if a caller writes directly into the buffer’s spare capacity, which is not yet supported (would need an unsafe set_len or a buffer redesign).