getTimestamp method

int getTimestamp()

Gets the the timestamp of the message.

return The timestamp of the message. throws BiosealException An error has occurred during Bioseal Library execution.

Implementation

int getTimestamp() {
  Pointer<LongLong> pTimestamp = calloc();
  try {
    var err = biosealSDK.id3BiosealLogItem_GetTimestamp(_pHandle.value, pTimestamp);
    if (err != BiosealError.success.value) {
      throw BiosealException(err);
    }
    final vTimestamp = pTimestamp.value;
    return vTimestamp;
  } finally {
    calloc.free(pTimestamp);
  }
}