Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# DocumentLicense.reactivateBuffer Method

Module: DocumentLicense

## Definition

Reactivates a license in a data buffer using the host hardware code and the product reference.

Python

    @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

> DocumentException
> An error has occurred during Document Library execution.

Dart

    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

> DocumentException
> An error has occurred during Document Library execution.

C#

    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

> DocumentException
> An error has occurred during Document Library execution.

Java

    public static byte[] reactivateBuffer(String hardwareCode, String productReference) throws DocumentException

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

> DocumentException
> An error has occurred during Document Library execution.

Swift

    public static func reactivateBuffer(hardwareCode: String, productReference: String) throws -> [UInt8]

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

> `[UInt8]`
> The new license data buffer.

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

C

    int id3DocumentLicense_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 id3DocumentError file for the list of possible error codes.