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