IResultSet constructor

IResultSet(
  1. FbInterface self
)

Implementation

IResultSet(super.self) {
  startIndex = super.startIndex + super.methodCount;
  methodCount = (version >= 5 ? 13 : (version >= 4 ? 12 : 11));
  var idx = startIndex;
  _fetchNext =
      Pointer<
            NativeFunction<
              Int Function(FbInterface, FbInterface, Pointer<Uint8>)
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  _fetchPrior =
      Pointer<
            NativeFunction<
              Int Function(FbInterface, FbInterface, Pointer<Uint8>)
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  _fetchFirst =
      Pointer<
            NativeFunction<
              Int Function(FbInterface, FbInterface, Pointer<Uint8>)
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  _fetchLast =
      Pointer<
            NativeFunction<
              Int Function(FbInterface, FbInterface, Pointer<Uint8>)
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  _fetchAbsolute =
      Pointer<
            NativeFunction<
              Int Function(FbInterface, FbInterface, Int, Pointer<Uint8>)
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  _fetchRelative =
      Pointer<
            NativeFunction<
              Int Function(FbInterface, FbInterface, Int, Pointer<Uint8>)
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  _isEof =
      Pointer<
            NativeFunction<FbBoolean Function(FbInterface, FbInterface)>
          >.fromAddress(vtable[idx++])
          .asFunction();
  _isBof =
      Pointer<
            NativeFunction<FbBoolean Function(FbInterface, FbInterface)>
          >.fromAddress(vtable[idx++])
          .asFunction();
  _getMetadata =
      Pointer<
            NativeFunction<FbInterface Function(FbInterface, FbInterface)>
          >.fromAddress(vtable[idx++])
          .asFunction();
  if (version >= 4) {
    _deprecatedClose =
        Pointer<
              NativeFunction<Void Function(FbInterface, FbInterface)>
            >.fromAddress(vtable[idx++])
            .asFunction();
  } else {
    _close =
        Pointer<
              NativeFunction<Void Function(FbInterface, FbInterface)>
            >.fromAddress(vtable[idx++])
            .asFunction();
  }
  _setDelayedOutputFormat =
      Pointer<
            NativeFunction<
              Void Function(FbInterface, FbInterface, FbInterface)
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  if (version >= 4) {
    _close =
        Pointer<
              NativeFunction<Void Function(FbInterface, FbInterface)>
            >.fromAddress(vtable[idx++])
            .asFunction();
  }
  if (version >= 5) {
    _getInfo =
        Pointer<
              NativeFunction<
                Void Function(
                  FbInterface,
                  FbInterface,
                  UnsignedInt,
                  Pointer<Uint8>,
                  UnsignedInt,
                  Pointer<Uint8>,
                )
              >
            >.fromAddress(vtable[idx++])
            .asFunction();
  }
}