Skip to main content

engine_from_data

Function engine_from_data 

Source
pub fn engine_from_data(data: &[u8]) -> Result<&RiskEngine>
Expand description

Get a reference to the RiskEngine from raw market account data.

ยงSafety

The data must be at least min_account_size() bytes and the engine region must be properly aligned. RiskEngine is #[repr(C)] with all-valid bit patterns.