$allocate static method

Pointer<ImageEmbedderResult> $allocate(
  1. Allocator $allocator, {
  2. required Pointer<MpEmbedding> embeddings,
  3. required int embeddings_count,
  4. required int timestamp_ms,
  5. required bool has_timestamp_ms,
})

Implementation

static ffi.Pointer<MpEmbeddingResult> $allocate(
  ffi.Allocator $allocator, {
  required ffi.Pointer<MpEmbedding> embeddings,
  required int embeddings_count,
  required int timestamp_ms,
  required bool has_timestamp_ms,
}) => $allocator<MpEmbeddingResult>()
  ..ref.embeddings = embeddings
  ..ref.embeddings_count = embeddings_count
  ..ref.timestamp_ms = timestamp_ms
  ..ref.has_timestamp_ms = has_timestamp_ms;