$allocate static method

Pointer<MpNormalizedKeypoint> $allocate(
  1. Allocator $allocator, {
  2. required double x,
  3. required double y,
  4. required Pointer<Char> label,
  5. required double score,
  6. required bool has_score,
})

Implementation

static ffi.Pointer<MpNormalizedKeypoint> $allocate(
  ffi.Allocator $allocator, {
  required double x,
  required double y,
  required ffi.Pointer<ffi.Char> label,
  required double score,
  required bool has_score,
}) => $allocator<MpNormalizedKeypoint>()
  ..ref.x = x
  ..ref.y = y
  ..ref.label = label
  ..ref.score = score
  ..ref.has_score = has_score;