Skip to main content

normalize_path_into

Function normalize_path_into 

Source
pub fn normalize_path_into(out: &mut Vec<u8>, path: &[u8])
Expand description

Normalize a virtual resource path into an existing buffer.

out is cleared before writing. Its previous allocation is reused when possible. This crate does not enforce a maximum path length; callers handling untrusted archive, tool, or Lua input should enforce their own byte budget. A scratch buffer can retain a large allocation after a pathological input, so discard or shrink it at the caller boundary if that matters.