IStatement constructor

IStatement(
  1. FbInterface self
)

Implementation

IStatement(super.self) {
  startIndex = super.startIndex + super.methodCount;
  methodCount = (version >= 4 ? 15 : 11);
  var idx = startIndex;
  _getInfo =
      Pointer<
            NativeFunction<
              Void Function(
                FbInterface,
                FbInterface,
                UnsignedInt,
                Pointer<Uint8>,
                UnsignedInt,
                Pointer<Uint8>,
              )
            >
          >.fromAddress(vtable[idx++])
          .asFunction();

  _getType =
      Pointer<
            NativeFunction<UnsignedInt Function(FbInterface, FbInterface)>
          >.fromAddress(vtable[idx++])
          .asFunction();

  _getPlan =
      Pointer<
            NativeFunction<
              Pointer<Utf8> Function(FbInterface, FbInterface, FbBoolean)
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  _getAffectedRecords =
      Pointer<
            NativeFunction<Uint64 Function(FbInterface, FbInterface)>
          >.fromAddress(vtable[idx++])
          .asFunction();
  _getInputMetadata =
      Pointer<
            NativeFunction<FbInterface Function(FbInterface, FbInterface)>
          >.fromAddress(vtable[idx++])
          .asFunction();
  _getOutputMetadata =
      Pointer<
            NativeFunction<FbInterface Function(FbInterface, FbInterface)>
          >.fromAddress(vtable[idx++])
          .asFunction();
  _execute =
      Pointer<
            NativeFunction<
              FbInterface Function(
                FbInterface,
                FbInterface,
                FbInterface,
                FbInterface,
                Pointer<Uint8>,
                FbInterface,
                Pointer<Uint8>,
              )
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  _openCursor =
      Pointer<
            NativeFunction<
              FbInterface Function(
                FbInterface,
                FbInterface,
                FbInterface,
                FbInterface,
                Pointer<Uint8>,
                FbInterface,
                UnsignedInt,
              )
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  _setCursorName =
      Pointer<
            NativeFunction<
              Void Function(FbInterface, FbInterface, Pointer<Utf8>)
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  if (version >= 4) {
    _deprecatedFree =
        Pointer<
              NativeFunction<Void Function(FbInterface, FbInterface)>
            >.fromAddress(vtable[idx++])
            .asFunction();
  } else {
    _free =
        Pointer<
              NativeFunction<Void Function(FbInterface, FbInterface)>
            >.fromAddress(vtable[idx++])
            .asFunction();
  }
  _getFlags =
      Pointer<
            NativeFunction<UnsignedInt Function(FbInterface, FbInterface)>
          >.fromAddress(vtable[idx++])
          .asFunction();
  _getTimeout =
      Pointer<
            NativeFunction<UnsignedInt Function(FbInterface, FbInterface)>
          >.fromAddress(vtable[idx++])
          .asFunction();
  _setTimeout =
      Pointer<
            NativeFunction<
              Void Function(FbInterface, FbInterface, UnsignedInt)
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  _createBatch =
      Pointer<
            NativeFunction<
              FbInterface Function(
                FbInterface,
                FbInterface,
                FbInterface,
                UnsignedInt,
                Pointer<Uint8>,
              )
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  if (version >= 4) {
    _free =
        Pointer<
              NativeFunction<Void Function(FbInterface, FbInterface)>
            >.fromAddress(vtable[idx++])
            .asFunction();
  }
}