getFormat method
Implementation
int? getFormat() {
  int? result;
  var formatPointer = calloc<Int32>();
  if (query(nullptr, formatPointer, nullptr, nullptr) == 0) {
    result = formatPointer.value;
  }
  calloc.free(formatPointer);
  return result;
}