Skip to main content

orderbook_depth10_new

Function orderbook_depth10_new 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn orderbook_depth10_new( instrument_id: InstrumentId, bids_ptr: *const BookOrderFfi, asks_ptr: *const BookOrderFfi, bid_counts_ptr: *const u32, ask_counts_ptr: *const u32, flags: u8, sequence: u64, ts_event: UnixNanos, ts_init: UnixNanos, ) -> OrderBookDepth10Ffi
Expand description

§Safety

This function assumes:

  • bids and asks are valid pointers to arrays of BookOrderFfi of length 10.
  • bid_counts and ask_counts are valid pointers to arrays of u32 of length 10.

§Panics

Panics if any input pointer is null or if slice conversion for bids or asks fails.