DevicesLicense.reactivateBuffer Method¶
Module: DevicesLicense
Definition¶
Reactivates a license in a data buffer using the host hardware code and the product reference.
@staticmethod
reactivate_buffer(hardware_code: str, product_reference: str) -> bytearray
Parameters
hardware_codestrin The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.product_referencestrin The product reference.
Returns
bytearrayThe new license data buffer.
Exceptions
An error has occurred during Devices Library execution.
static Uint8List reactivateBuffer(String? hardwareCode, String? productReference)
Parameters
hardwareCodeStringin The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.productReferenceStringin The product reference.
Returns
Uint8ListThe new license data buffer.
Exceptions
An error has occurred during Devices Library execution.
public static byte[] ReactivateBuffer(string hardwareCode, string productReference)
Parameters
hardwareCodestringin The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.productReferencestringin The product reference.
Returns
byte[]The new license data buffer.
Exceptions
An error has occurred during Devices Library execution.
public static byte[] reactivateBuffer(String hardwareCode, String productReference) throws DevicesException
Parameters
hardwareCodeStringin The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.productReferenceStringin The product reference.
Returns
byte[]The new license data buffer.
Exceptions
An error has occurred during Devices Library execution.
int id3DevicesLicense_ReactivateBuffer (
const char * hardwareCode,
const char * productReference,
unsigned char * licenseFileBuffer,
int * licenseFileBufferSize)
Parameters
hardwareCodeconst char *in The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.productReferenceconst char *in The product reference.licenseFileBufferunsigned char *out The new license data buffer.licenseFileBufferSizeint *in Size of the ‘licenseFileBuffer’ buffer. Receives the number of elements in the ‘licenseFileBuffer’ array.
Returns