$allocate static method

Pointer<MpClassifications> $allocate(
  1. Allocator $allocator, {
  2. required Pointer<MpCategory> categories,
  3. required int categories_count,
  4. required int head_index,
  5. required Pointer<Char> head_name,
})

Implementation

static ffi.Pointer<MpClassifications> $allocate(
  ffi.Allocator $allocator, {
  required ffi.Pointer<MpCategory> categories,
  required int categories_count,
  required int head_index,
  required ffi.Pointer<ffi.Char> head_name,
}) => $allocator<MpClassifications>()
  ..ref.categories = categories
  ..ref.categories_count = categories_count
  ..ref.head_index = head_index
  ..ref.head_name = head_name;