$allocate static method

Pointer<MpLanguageDetectorResult> $allocate(
  1. Allocator $allocator, {
  2. required Pointer<MpLanguageDetectorPrediction> predictions,
  3. required int predictions_count,
})

Implementation

static ffi.Pointer<MpLanguageDetectorResult> $allocate(
  ffi.Allocator $allocator, {
  required ffi.Pointer<MpLanguageDetectorPrediction> predictions,
  required int predictions_count,
}) => $allocator<MpLanguageDetectorResult>()
  ..ref.predictions = predictions
  ..ref.predictions_count = predictions_count;