$allocate static method

Pointer<MpImageClassifierResult> $allocate(
  1. Allocator $allocator, {
  2. required Pointer<MpClassifications> classifications,
  3. required int classifications_count,
  4. required int timestamp_ms,
  5. required bool has_timestamp_ms,
})

Implementation

static ffi.Pointer<MpClassificationResult> $allocate(
  ffi.Allocator $allocator, {
  required ffi.Pointer<MpClassifications> classifications,
  required int classifications_count,
  required int timestamp_ms,
  required bool has_timestamp_ms,
}) => $allocator<MpClassificationResult>()
  ..ref.classifications = classifications
  ..ref.classifications_count = classifications_count
  ..ref.timestamp_ms = timestamp_ms
  ..ref.has_timestamp_ms = has_timestamp_ms;