IRequest constructor

IRequest(
  1. FbInterface self
)

Implementation

IRequest(super.self) {
  startIndex = super.startIndex + super.methodCount;
  methodCount = (version >= 4 ? 8 : 7);
  var idx = startIndex;
  _receive =
      Pointer<
            NativeFunction<
              Void Function(
                FbInterface,
                FbInterface,
                Int,
                UnsignedInt,
                UnsignedInt,
                Pointer<Uint8>,
              )
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  _send =
      Pointer<
            NativeFunction<
              Void Function(
                FbInterface,
                FbInterface,
                Int,
                UnsignedInt,
                UnsignedInt,
                Pointer<Uint8>,
              )
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  _getInfo =
      Pointer<
            NativeFunction<
              Void Function(
                FbInterface,
                FbInterface,
                Int,
                UnsignedInt,
                Pointer<Uint8>,
                UnsignedInt,
                Pointer<Uint8>,
              )
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  _start =
      Pointer<
            NativeFunction<
              Void Function(FbInterface, FbInterface, FbInterface, Int)
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  _startAndSend =
      Pointer<
            NativeFunction<
              Void Function(
                FbInterface,
                FbInterface,
                FbInterface,
                Int,
                UnsignedInt,
                UnsignedInt,
                Pointer<Uint8>,
              )
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  _unwind =
      Pointer<
            NativeFunction<Void Function(FbInterface, FbInterface, Int)>
          >.fromAddress(vtable[idx++])
          .asFunction();
  if (version >= 4) {
    _deprecatedFree =
        Pointer<
              NativeFunction<Void Function(FbInterface, FbInterface)>
            >.fromAddress(vtable[idx++])
            .asFunction();
  }
  _free =
      Pointer<
            NativeFunction<Void Function(FbInterface, FbInterface)>
          >.fromAddress(vtable[idx++])
          .asFunction();
}