IBlob constructor

IBlob(
  1. FbInterface self
)

Implementation

IBlob(super.self) {
  startIndex = super.startIndex + super.methodCount;
  methodCount = (version >= 4 ? 8 : 6);
  var idx = startIndex;
  _getInfo =
      Pointer<
            NativeFunction<
              Void Function(
                FbInterface,
                FbInterface,
                UnsignedInt,
                Pointer<Uint8>,
                UnsignedInt,
                Pointer<Uint8>,
              )
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  _getSegment =
      Pointer<
            NativeFunction<
              Int Function(
                FbInterface,
                FbInterface,
                UnsignedInt,
                Pointer<Uint8>,
                Pointer<UnsignedInt>,
              )
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  _putSegment =
      Pointer<
            NativeFunction<
              Void Function(
                FbInterface,
                FbInterface,
                UnsignedInt,
                Pointer<Uint8>,
              )
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  if (version >= 4) {
    _deprecatedCancel =
        Pointer<
              NativeFunction<Void Function(FbInterface, FbInterface)>
            >.fromAddress(vtable[idx++])
            .asFunction();
    _deprecatedClose =
        Pointer<
              NativeFunction<Void Function(FbInterface, FbInterface)>
            >.fromAddress(vtable[idx++])
            .asFunction();
  } else {
    _cancel =
        Pointer<
              NativeFunction<Void Function(FbInterface, FbInterface)>
            >.fromAddress(vtable[idx++])
            .asFunction();
    _close =
        Pointer<
              NativeFunction<Void Function(FbInterface, FbInterface)>
            >.fromAddress(vtable[idx++])
            .asFunction();
  }
  _seek =
      Pointer<
            NativeFunction<Int Function(FbInterface, FbInterface, Int, Int)>
          >.fromAddress(vtable[idx++])
          .asFunction();
  if (version >= 4) {
    _cancel =
        Pointer<
              NativeFunction<Void Function(FbInterface, FbInterface)>
            >.fromAddress(vtable[idx++])
            .asFunction();
    _close =
        Pointer<
              NativeFunction<Void Function(FbInterface, FbInterface)>
            >.fromAddress(vtable[idx++])
            .asFunction();
  }
}