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 str
in The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.

product_reference str
in 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 String
in The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.

productReference String
in 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 string
in The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.

productReference string
in 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 String
in The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.

productReference String
in 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

int
An error code.
See id3DevicesError file for the list of possible error codes.