pub fn state(data: &mut [u8], key: &StateKey) -> Result<i64>
Retrieve the data pointed to by a Hook State key and write it to an output buffer