v2025.6.2
All Bundles

IntRef

Holds an integer value

Operations

Add

Adds to value

method : public : Add(value:Int) ~ Nil

Parameters

NameTypeDescription
valueIntvalue to add to

Clone

Clones the object instance

method : public : Clone() ~ System.IntRef

Return

TypeDescription
IntRefcloned the object instance

Compare

Compares two objects

method : public : native : Compare(rhs:System.Compare) ~ Int

Parameters

NameTypeDescription
rhsComparecompare object

Return

TypeDescription
Int0 if equal, -1 if right-hand side i greater, 1 if left-hand side is greater

Dec

Decrements value by 1

method : public : Dec() ~ Nil

Div

Divide by value

method : public : Div(value:Int) ~ Nil

Parameters

NameTypeDescription
valueIntvalue to divide by

FromArray

Creates an array of references from primitives

function : FromArray(input:Int[]) ~ IntRef[]

Parameters

NameTypeDescription
inputIntarray of primitives

Return

TypeDescription
IntRefan array of references

Get

Get integer value

method : public : Get() ~ Int

Return

TypeDescription
Intinteger value

HashID

Returns a unique hash ID for a integer

method : public : HashID() ~ Int

Return

TypeDescription
Inthash ID

Inc

Increments value by 1

method : public : Inc() ~ Nil

Mul

Multiply to value

method : public : Mul(value:Int) ~ Nil

Parameters

NameTypeDescription
valueIntvalue to multiply by

New

Default constructor

New()

New

Copy constructor

New(value:Int)

Parameters

NameTypeDescription
valueIntinteger value

Set

Set integer value

method : public : Set(value:Int) ~ Nil

Parameters

NameTypeDescription
valueIntinteger value

Sub

Subtract from value

method : public : Sub(value:Int) ~ Nil

Parameters

NameTypeDescription
valueIntvalue to subtract by

ToArray

Creates an array of primitives from references

function : ToArray(input:IntRef[]) ~ Int[]

Parameters

NameTypeDescription
inputIntRefarray of references

Return

TypeDescription
Intan array of primitives