DocumentLicense.checkLicenseBuffer Method¶
Module: DocumentLicense
Definition¶
Checks a license from a buffer.
This function does two things:
First it loads the license from a buffer
Then it checks the validity of the license regarding the host it is called on (Windows, Linux, Android …)
Important
Calling one of the license checking function is required to get access to all the license member getters.
Note
The optional parameter is required on Android and must be the JNIEnv* pointer casted as a void*. It can be set as NULL for other devices.
@staticmethod
check_license_buffer(license_data: bytearray) -> None
Parameters
license_databytearrayin A buffer containing the license file data.
Exceptions
An error has occurred during Document Library execution.
static void checkLicenseBuffer(Uint8List? licenseData)
Parameters
licenseDataUint8Listin A buffer containing the license file data.
Exceptions
An error has occurred during Document Library execution.
public static void CheckLicenseBuffer(byte[] licenseData)
Parameters
licenseDatabyte[]in A buffer containing the license file data.
Exceptions
An error has occurred during Document Library execution.
public static void checkLicenseBuffer(byte[] licenseData) throws DocumentException
Parameters
licenseDatabyte[]in A buffer containing the license file data.
Exceptions
An error has occurred during Document Library execution.
public static func checkLicenseBuffer(licenseData: [UInt8]) throws
Parameters
licenseData[UInt8]in A buffer containing the license file data.
Exceptions
An error has occurred during Document Library execution.
int id3DocumentLicense_CheckLicenseBuffer (
unsigned char * licenseData,
int licenseDataSize,
void * optionalParameter)
Parameters
licenseDataunsigned char *in A buffer containing the license file data.licenseDataSizeintin Size of the ‘licenseData’ buffer.optionalParametervoid *in Only used on Android: JNIEnv* pointer casted as a void*. Ignored for other devices.
Returns