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_code
strin The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.product_reference
strin The product reference.
Returns
bytearray
The new license data buffer.
Exceptions
An error has occurred during Devices Library execution.
static Uint8List reactivateBuffer(String? hardwareCode, String? productReference)
Parameters
hardwareCode
Stringin The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.productReference
Stringin The product reference.
Returns
Uint8List
The new license data buffer.
Exceptions
An error has occurred during Devices Library execution.
public static byte[] ReactivateBuffer(string hardwareCode, string productReference)
Parameters
hardwareCode
stringin The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.productReference
stringin 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
hardwareCode
Stringin The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.productReference
Stringin 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
hardwareCode
const char *in The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.productReference
const char *in The product reference.licenseFileBuffer
unsigned char *out The new license data buffer.licenseFileBufferSize
int *in Size of the ‘licenseFileBuffer’ buffer. Receives the number of elements in the ‘licenseFileBuffer’ array.
Returns