IMetadataBuilder constructor

IMetadataBuilder(
  1. FbInterface self
)

Implementation

IMetadataBuilder(super.self) {
  startIndex = super.startIndex + super.methodCount;
  methodCount = (version >= 4 ? 14 : 10);
  var idx = startIndex;
  _setType = Pointer<
          NativeFunction<
              Void Function(FbInterface, FbInterface, UnsignedInt,
                  UnsignedInt)>>.fromAddress(vtable[idx++])
      .asFunction();
  _setSubType = Pointer<
          NativeFunction<
              Void Function(FbInterface, FbInterface, UnsignedInt,
                  UnsignedInt)>>.fromAddress(vtable[idx++])
      .asFunction();
  _setLength = Pointer<
          NativeFunction<
              Void Function(FbInterface, FbInterface, UnsignedInt,
                  UnsignedInt)>>.fromAddress(vtable[idx++])
      .asFunction();
  _setCharSet = Pointer<
          NativeFunction<
              Void Function(FbInterface, FbInterface, UnsignedInt,
                  UnsignedInt)>>.fromAddress(vtable[idx++])
      .asFunction();
  _setScale = Pointer<
          NativeFunction<
              Void Function(FbInterface, FbInterface, UnsignedInt,
                  Int)>>.fromAddress(vtable[idx++])
      .asFunction();
  _truncate = Pointer<
          NativeFunction<
              Void Function(FbInterface, FbInterface,
                  UnsignedInt)>>.fromAddress(vtable[idx++])
      .asFunction();
  _moveNameToIndex = Pointer<
          NativeFunction<
              Void Function(FbInterface, FbInterface, Pointer<Utf8>,
                  UnsignedInt)>>.fromAddress(vtable[idx++])
      .asFunction();
  _remove = Pointer<
          NativeFunction<
              Void Function(FbInterface, FbInterface,
                  UnsignedInt)>>.fromAddress(vtable[idx++])
      .asFunction();
  _addField = Pointer<
          NativeFunction<
              UnsignedInt Function(
                  FbInterface, FbInterface)>>.fromAddress(vtable[idx++])
      .asFunction();
  _getMetadata = Pointer<
          NativeFunction<
              FbInterface Function(
                  FbInterface, FbInterface)>>.fromAddress(vtable[idx++])
      .asFunction();
  if (version >= 4) {
    _setField = Pointer<
            NativeFunction<
                Void Function(FbInterface, FbInterface, UnsignedInt,
                    Pointer<Utf8>)>>.fromAddress(vtable[idx++])
        .asFunction();
    _setRelation = Pointer<
            NativeFunction<
                Void Function(FbInterface, FbInterface, UnsignedInt,
                    Pointer<Utf8>)>>.fromAddress(vtable[idx++])
        .asFunction();
    _setOwner = Pointer<
            NativeFunction<
                Void Function(FbInterface, FbInterface, UnsignedInt,
                    Pointer<Utf8>)>>.fromAddress(vtable[idx++])
        .asFunction();
    _setAlias = Pointer<
            NativeFunction<
                Void Function(FbInterface, FbInterface, UnsignedInt,
                    Pointer<Utf8>)>>.fromAddress(vtable[idx++])
        .asFunction();
  }
}