assignToStruct method

  1. @override
void assignToStruct(
  1. EmbedderOptions struct
)
override

Assigns all values to an existing struct. This method should be implemented by all InnerTaskOptions types to hydrate a struct, but not for the creation of that struct. Allocation and management of the actual structs are handled by TaskOptions.copyToNative on the wrapping options object.

Implementation

@override
void assignToStruct(bindings.EmbedderOptions struct) {
  struct.l2_normalize = l2Normalize;
  struct.quantize = quantize;
}