bind_text64 method

int bind_text64(
  1. PtrStmt arg1,
  2. int arg2,
  3. String? arg3,
  4. int encoding,
)
inherited

Implementation

int bind_text64(PtrStmt arg1, int arg2, String? arg3, int encoding) {
  if (libVersionNumber < 3008007) {
    throw dbsql.DatabaseException('API sqlite3_bind_text64 is not available before 3.8.7');
  }
  final arg3Meta = encoding == _i1.UTF8 ? arg3?._metaNativeUtf8() : arg3?._metaNativeUtf16();
  final ptrArg3 = arg3Meta?.ptr ?? ffi.nullptr;
  return _h_sqlite3_bind_text64!(
      arg1, arg2, ptrArg3.cast(), arg3Meta?.length ?? 0, _ptrDestructor, encoding);
}