getAuditStatusJson method

String? getAuditStatusJson()

Gets current audit status encoded as UTF-8 JSON object.

Returns null on FFI failure.

Implementation

String? getAuditStatusJson() {
  final data = callWithBuffer(
    (buf, bufLen, outWritten) =>
        _bindings.odbc_audit_get_status(buf, bufLen, outWritten),
  );
  if (data == null) {
    return null;
  }
  return utf8.decode(data);
}