$allocate static method

Pointer<MpRegionOfInterest> $allocate(
  1. Allocator $allocator, {
  2. required MpRegionOfInterestFormat format,
  3. required Pointer<MpNormalizedKeypoint> keypoint,
  4. required Pointer<MpNormalizedKeypoint> scribble,
  5. required int scribble_count,
})

Implementation

static ffi.Pointer<MpRegionOfInterest> $allocate(
  ffi.Allocator $allocator, {
  required MpRegionOfInterestFormat format,
  required ffi.Pointer<MpNormalizedKeypoint> keypoint,
  required ffi.Pointer<MpNormalizedKeypoint> scribble,
  required int scribble_count,
}) => $allocator<MpRegionOfInterest>()
  ..ref.format = format
  ..ref.keypoint = keypoint
  ..ref.scribble = scribble
  ..ref.scribble_count = scribble_count;