Skip to main content

copy_ecstr

Function copy_ecstr 

Source
pub fn copy_ecstr(table: &HashMap<u32, Vec<u8>>, p: &mut [u8])
Expand description

Port of copy_ecstr(Eccstr s, char *p) from Src/parse.c:537. Walks the in-build string-eccstr tree and writes each entry to p[s->aoffs..]. The Rust port mirrors via the ECSTRS_REVERSE HashMap (eccstr-tree replacement) and writes into a Vec<u8> slice.