fromNativeArray static method

Iterable<Embedding> fromNativeArray(
  1. Pointer<Embedding> structs,
  2. int count
)

Accepts a pointer to a list of structs, and a count representing the length of the list, and returns a list of pure-Dart Embedding instances.

Implementation

static Iterable<Embedding> fromNativeArray(
  Pointer<bindings.Embedding> structs,
  int count,
) sync* {
  for (int i = 0; i < count; i++) {
    yield Embedding.native(structs + i);
  }
}