LicenceUtil

Description

static class Tinman.Licence.LicenceUtil

Helper class for this namespace.

Public / Constants

Seconds​Per​Month


public constant SecondsPerMonth → (2629800:int32)

Average number of seconds per month.

Timestamp​Ticks​Per​Year


public constant TimestampTicksPerYear → (54:int32)

Number of timestamp ticks per year (rounded up).

Public / Constructors

Tinman


public static method Tinman → ()

returns → IDomain

The IDomain object.

Returns the IDomain object for the Tinman 3D SDK.

Public / Methods

Content


public static method Content → (3)

input in : int8 [ ]

Input buffer holding the locked content bytes.

key in : int8 [ ]

The binary licence key.

output in : int8 [ ]

Output buffer for unlocked content bytes.

returns → int32

= 0 : The number of bytes that have been written to output in.
< 0 : The required output buffer length (negated), if null or too small.

Unlocks the given protected content.

Timestamp​Ticks​To​Utc


public static method TimestampTicksToUtc → (1)

ticks in : int32

The timestamp ticks (weeks).

returns → int64

The millisecond ticks.

Converts the given UTC into timestamp ticks (weeks) to milliseconds since 1970/01/01.

Timestamp​Utc​To​Ticks


public static method TimestampUtcToTicks → (1)

utc in : int64

The millisecond ticks.

returns → int32

The timestamp ticks (weeks).

Converts the given milliseconds since 1970/01/01 UTC into timestamp ticks (weeks).

To​Upper


[Pure]
public static method ToUpper → (1)

in : char

The character.

returns → char

The uppercase character.

Returns the culture-invariant uppercase of the given character.

Public / Attributes

System​Time


public static attribute SystemTime → (get)

value : int64

The system time, in milliseconds after 1970/01/01 00:00:00 UTC (i.e. the unix epoch).

Returns the system time.