IService constructor

IService(
  1. FbInterface self
)

Implementation

IService(super.self) {
  startIndex = super.startIndex + super.methodCount;
  methodCount = (version >= 4 ? 5 : 3);
  var idx = startIndex;
  if (version >= 4) {
    _deprecatedDetach =
        Pointer<
              NativeFunction<Void Function(FbInterface, FbInterface)>
            >.fromAddress(vtable[idx++])
            .asFunction();
  } else {
    _detach =
        Pointer<
              NativeFunction<Void Function(FbInterface, FbInterface)>
            >.fromAddress(vtable[idx++])
            .asFunction();
  }
  _query =
      Pointer<
            NativeFunction<
              Void Function(
                FbInterface,
                FbInterface,
                UnsignedInt,
                Pointer<Uint8>,
                UnsignedInt,
                Pointer<Uint8>,
                UnsignedInt,
                Pointer<Uint8>,
              )
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  _start =
      Pointer<
            NativeFunction<
              Void Function(
                FbInterface,
                FbInterface,
                UnsignedInt,
                Pointer<Uint8>,
              )
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  if (version >= 4) {
    _detach =
        Pointer<
              NativeFunction<Void Function(FbInterface, FbInterface)>
            >.fromAddress(vtable[idx++])
            .asFunction();
    _cancel =
        Pointer<
              NativeFunction<Void Function(FbInterface, FbInterface)>
            >.fromAddress(vtable[idx++])
            .asFunction();
  }
}