Skip to main content

write_flags_at

Function write_flags_at 

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

Write value to the flags byte at offset in a mutable data slice. Bounds-checked: AccountDataTooSmall if offset is out of range.