IUtil constructor

IUtil(
  1. FbInterface self
)

Implementation

IUtil(super.self) {
  startIndex = super.startIndex + super.methodCount;
  methodCount = (version >= 4 ? 22 : 13);
  var idx = startIndex;
  _getFbVersion =
      Pointer<
            NativeFunction<
              Void Function(
                FbInterface,
                FbInterface,
                FbInterface,
                FbInterface,
              )
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  _loadBlob =
      Pointer<
            NativeFunction<
              Void Function(
                FbInterface,
                FbInterface,
                Pointer<IscQuad>,
                FbInterface,
                FbInterface,
                Pointer<Utf8>,
                FbBoolean,
              )
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  _dumbBlob =
      Pointer<
            NativeFunction<
              Void Function(
                FbInterface,
                FbInterface,
                Pointer<IscQuad>,
                FbInterface,
                FbInterface,
                Pointer<Utf8>,
                FbBoolean,
              )
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  _getPerfCounters =
      Pointer<
            NativeFunction<
              Void Function(
                FbInterface,
                FbInterface,
                FbInterface,
                Pointer<Utf8>,
                Pointer<Int64>,
              )
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  _executeCreateDatabase =
      Pointer<
            NativeFunction<
              FbInterface Function(
                FbInterface,
                FbInterface,
                UnsignedInt,
                Pointer<Utf8>,
                UnsignedInt,
                Pointer<FbBoolean>,
              )
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  _decodeDate =
      Pointer<
            NativeFunction<
              Void Function(
                FbInterface,
                IscDate,
                Pointer<UnsignedInt>,
                Pointer<UnsignedInt>,
                Pointer<UnsignedInt>,
              )
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  _decodeTime =
      Pointer<
            NativeFunction<
              Void Function(
                FbInterface,
                IscTime,
                Pointer<UnsignedInt>,
                Pointer<UnsignedInt>,
                Pointer<UnsignedInt>,
                Pointer<UnsignedInt>,
              )
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  _encodeDate =
      Pointer<
            NativeFunction<
              IscDate Function(
                FbInterface,
                UnsignedInt,
                UnsignedInt,
                UnsignedInt,
              )
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  _encodeTime =
      Pointer<
            NativeFunction<
              IscTime Function(
                FbInterface,
                UnsignedInt,
                UnsignedInt,
                UnsignedInt,
                UnsignedInt,
              )
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  _formatStatus =
      Pointer<
            NativeFunction<
              UnsignedInt Function(
                FbInterface,
                Pointer<Utf8>,
                UnsignedInt,
                FbInterface,
              )
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  _getClientVersion =
      Pointer<NativeFunction<UnsignedInt Function(FbInterface)>>.fromAddress(
        vtable[idx++],
      ).asFunction();
  _getXpbBuilder =
      Pointer<
            NativeFunction<
              FbInterface Function(
                FbInterface,
                FbInterface,
                UnsignedInt,
                Pointer<Uint8>,
                UnsignedInt,
              )
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  _setOffsets =
      Pointer<
            NativeFunction<
              UnsignedInt Function(
                FbInterface,
                FbInterface,
                FbInterface,
                FbInterface,
              )
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  if (version >= 4) {
    _getDecFloat16 =
        Pointer<
              NativeFunction<FbInterface Function(FbInterface, FbInterface)>
            >.fromAddress(vtable[idx++])
            .asFunction();
    _getDecFloat34 =
        Pointer<
              NativeFunction<FbInterface Function(FbInterface, FbInterface)>
            >.fromAddress(vtable[idx++])
            .asFunction();
    _decodeTimeTz =
        Pointer<
              NativeFunction<
                Void Function(
                  FbInterface,
                  FbInterface,
                  Pointer<IscTimeTz>,
                  Pointer<UnsignedInt>,
                  Pointer<UnsignedInt>,
                  Pointer<UnsignedInt>,
                  Pointer<UnsignedInt>,
                  UnsignedInt,
                  Pointer<Utf8>,
                )
              >
            >.fromAddress(vtable[idx++])
            .asFunction();
    _decodeTimeStampTz =
        Pointer<
              NativeFunction<
                Void Function(
                  FbInterface,
                  FbInterface,
                  Pointer<IscTimestampTz>,
                  Pointer<UnsignedInt>,
                  Pointer<UnsignedInt>,
                  Pointer<UnsignedInt>,
                  Pointer<UnsignedInt>,
                  Pointer<UnsignedInt>,
                  Pointer<UnsignedInt>,
                  Pointer<UnsignedInt>,
                  UnsignedInt,
                  Pointer<Utf8>,
                )
              >
            >.fromAddress(vtable[idx++])
            .asFunction();
    _encodeTimeTz =
        Pointer<
              NativeFunction<
                Void Function(
                  FbInterface,
                  FbInterface,
                  Pointer<IscTimeTz>,
                  UnsignedInt,
                  UnsignedInt,
                  UnsignedInt,
                  UnsignedInt,
                  Pointer<Utf8>,
                )
              >
            >.fromAddress(vtable[idx++])
            .asFunction();
    _encodeTimeStampTz =
        Pointer<
              NativeFunction<
                Void Function(
                  FbInterface,
                  FbInterface,
                  Pointer<IscTimestampTz>,
                  UnsignedInt,
                  UnsignedInt,
                  UnsignedInt,
                  UnsignedInt,
                  UnsignedInt,
                  UnsignedInt,
                  UnsignedInt,
                  Pointer<Utf8>,
                )
              >
            >.fromAddress(vtable[idx++])
            .asFunction();
    _getInt128 =
        Pointer<
              NativeFunction<FbInterface Function(FbInterface, FbInterface)>
            >.fromAddress(vtable[idx++])
            .asFunction();
    _decodeTimeTzEx =
        Pointer<
              NativeFunction<
                Void Function(
                  FbInterface,
                  FbInterface,
                  Pointer<IscTimeTzEx>,
                  Pointer<UnsignedInt>,
                  Pointer<UnsignedInt>,
                  Pointer<UnsignedInt>,
                  Pointer<UnsignedInt>,
                  UnsignedInt,
                  Pointer<Utf8>,
                )
              >
            >.fromAddress(vtable[idx++])
            .asFunction();
    _decodeTimeStampTzEx =
        Pointer<
              NativeFunction<
                Void Function(
                  FbInterface,
                  FbInterface,
                  Pointer<IscTimestampTzEx>,
                  Pointer<UnsignedInt>,
                  Pointer<UnsignedInt>,
                  Pointer<UnsignedInt>,
                  Pointer<UnsignedInt>,
                  Pointer<UnsignedInt>,
                  Pointer<UnsignedInt>,
                  Pointer<UnsignedInt>,
                  UnsignedInt,
                  Pointer<Utf8>,
                )
              >
            >.fromAddress(vtable[idx++])
            .asFunction();
  }
}