$allocate static method

Pointer<MpFaceDetectorResult> $allocate(
  1. Allocator $allocator, {
  2. required Pointer<MpDetection> detections,
  3. required int detections_count,
})

Implementation

static ffi.Pointer<MpDetectionResult> $allocate(
  ffi.Allocator $allocator, {
  required ffi.Pointer<MpDetection> detections,
  required int detections_count,
}) => $allocator<MpDetectionResult>()
  ..ref.detections = detections
  ..ref.detections_count = detections_count;