$allocate static method

Pointer<MpEmbedderOptions> $allocate(
  1. Allocator $allocator, {
  2. required bool l2_normalize,
  3. required bool quantize,
})

Implementation

static ffi.Pointer<MpEmbedderOptions> $allocate(
  ffi.Allocator $allocator, {
  required bool l2_normalize,
  required bool quantize,
}) => $allocator<MpEmbedderOptions>()
  ..ref.l2_normalize = l2_normalize
  ..ref.quantize = quantize;