getYear method

int getYear()

Gets the the year (1 through 9999, 0 if invalid date).

return The year (1 through 9999, 0 if invalid date). throws BiosealException An error has occurred during Bioseal Library execution.

Implementation

int getYear() {
  Pointer<Int> pYear = calloc();
  try {
    var err = biosealSDK.id3BiosealDateTime_GetYear(_pHandle.value, pYear);
    if (err != BiosealError.success.value) {
      throw BiosealException(err);
    }
    final vYear = pYear.value;
    return vYear;
  } finally {
    calloc.free(pYear);
  }
}