Skip to main content

read_fstring

Function read_fstring 

Source
fn read_fstring(data: &[u8], offset: usize) -> (Option<String>, usize)
Expand description

Read an FString: length-prefixed, possibly UTF-16.

Layout: <i32 length> – negative means UTF-16 with -len chars, positive means UTF-8 byte count (including null terminator). Returns (string, new_offset).