$allocate static method

Pointer<mockingbird_event_t> $allocate(
  1. Allocator $allocator, {
  2. required mockingbird_event_type type,
  3. required int segment_id,
  4. required int timestamp_us,
  5. required int reason_mask,
  6. required double confidence,
  7. required int $reserved,
})

Implementation

static ffi.Pointer<mockingbird_event> $allocate(
  ffi.Allocator $allocator, {
  required mockingbird_event_type type,
  required int segment_id,
  required int timestamp_us,
  required int reason_mask,
  required double confidence,
  required int $reserved,
}) => $allocator<mockingbird_event>()
  ..ref.type = type
  ..ref.segment_id = segment_id
  ..ref.timestamp_us = timestamp_us
  ..ref.reason_mask = reason_mask
  ..ref.confidence = confidence
  ..ref._reserved = $reserved;