Skip to main content

read_wxf

Function read_wxf 

Source
pub fn read_wxf<T>(
    bytes: &[u8],
    f: impl for<'a> FnOnce(&mut WxfReader<SliceReader<'a>>) -> Result<T, Error>,
) -> Result<T, Error>
Expand description

Read from a WXF blob (8: / 8C: auto-detected) via a WxfReader. The closure can pull one or more top-level values — e.g. a Function[List, …] wrapper around several arguments. For a single value, prefer [from_wxf].