Skip to main content

check_state

Function check_state 

Source
pub fn check_state(
    data: &[u8],
    offset: usize,
    expected: u8,
) -> Result<(), ProgramError>
Expand description

Check that the state byte at offset in data matches expected.