registerOpaqueType<T extends Opaque> function Null safety

  1. @extra
void registerOpaqueType<T extends Opaque>()

Must be called with each type that extends Opaque before attemtping to use that type.

Implementation

@extra
void registerOpaqueType<T extends Opaque>() {
  sizeMap[T] = sizeOf<Opaque>();
  registerNativeMarshallerOpaque<T>();
}