$allocate static method

Pointer<MpTextEmbedderFormatContext> $allocate(
  1. Allocator $allocator, {
  2. required MpTextEmbedderEmbeddingType task_type,
  3. required Pointer<Char> title,
  4. required MpTextEmbedderRole role,
})

Implementation

static ffi.Pointer<MpTextEmbedderFormatContext> $allocate(
  ffi.Allocator $allocator, {
  required MpTextEmbedderEmbeddingType task_type,
  required ffi.Pointer<ffi.Char> title,
  required MpTextEmbedderRole role,
}) => $allocator<MpTextEmbedderFormatContext>()
  ..ref.task_type = task_type
  ..ref.title = title
  ..ref.role = role;