Attribute

constructor()

Allocate a new Attribute.

This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.


constructor(scope: <Error class: unknown class>)

Allocate a new Attribute using the provided AutofreeScope.

The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped.

Parameters

scope

The AutofreeScope to allocate this structure in.


constructor(klass: AttrClass?, startIndex: <Error class: unknown class>, endIndex: <Error class: unknown class>)

Allocate a new Attribute.

This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.

Parameters

klass

the class structure holding information about the type of the attribute

startIndex

the start index of the range (in bytes).

endIndex

end index of the range (in bytes). The character at this index is not included in the range.


constructor(klass: AttrClass?, startIndex: <Error class: unknown class>, endIndex: <Error class: unknown class>, scope: <Error class: unknown class>)

Allocate a new Attribute using the provided AutofreeScope.

The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped.

Parameters

klass

the class structure holding information about the type of the attribute

startIndex

the start index of the range (in bytes).

endIndex

end index of the range (in bytes). The character at this index is not included in the range.

scope

The AutofreeScope to allocate this structure in.


constructor(pointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null)