$allocate static method
Pointer<MpTextEmbedderFormatContext>
$allocate(
- Allocator $allocator, {
- required MpTextEmbedderEmbeddingType task_type,
- required Pointer<
Char> title, - 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;