mdb_env_set_flags function

int mdb_env_set_flags(
  1. Pointer<MDB_env> env,
  2. int flags,
  3. int onoff
)

@brief Set environment flags.

This may be used to set some flags in addition to those from #mdb_env_open(), or to unset these flags. If several threads change the flags at the same time, the result is undefined. @paramin env An environment handle returned by #mdb_env_create() @paramin flags The flags to change, bitwise OR'ed together @paramin onoff A non-zero value sets the flags, zero clears them. @return A non-zero error value on failure and 0 on success. Some possible errors are:

  • EINVAL - an invalid parameter was specified.

Implementation

@ffi.FfiNative<
    ffi.Int Function(
        ffi.Pointer<MDB_env>, ffi.UnsignedInt, ffi.Int)>('mdb_env_set_flags')
external int mdb_env_set_flags(
  ffi.Pointer<MDB_env> env,
  int flags,
  int onoff,
);