getExtensionType method

FieldExtensionType getExtensionType()

Gets the the field extension type.

return The field extension type. throws BiosealException An error has occurred during Bioseal Library execution.

Implementation

FieldExtensionType getExtensionType() {
  Pointer<Int32> pExtensionType = calloc();
  try {
    var err = biosealSDK.id3BiosealField_GetExtensionType(_pHandle.value, pExtensionType);
    if (err != BiosealError.success.value) {
      throw BiosealException(err);
    }
    final vExtensionType = FieldExtensionTypeX.fromValue(pExtensionType.value);
    return vExtensionType;
  } finally {
    calloc.free(pExtensionType);
  }
}