Interface SignedInt4
access this type via: data.SignedInt4 (provides, requires or uses)
An object to represent and manipulate signed 32-bit integers (Dana primitive integers are all unsigned).
Functions
SignedInt4(optional int4 val, int4 neg)
int4 subtract(int4 val)
int4 add(int4 val)
int4 multiply(int4 val)
int4 divide(int4 val)
int4 getValue()
void setValue(int4 v)
bool isNegative()
void invert()
byte[] getBytes()
SignedInt4(optional int4 val, int4 neg)
Creates a new 32-bit signed integer instance, initialised either from an absolute value (val) or from a positive value which should be made negative (neg).
int4 subtract(int4 val)
Subtract a given 32-bit signed integer value from this instance's current value.
int4 add(int4 val)
Add a given 32-bit signed integer value to this instance's current value.
int4 multiply(int4 val)
Multiply this instance's current value by a given 32-bit signed integer value.
int4 divide(int4 val)
Divide this instance's current value by a given 32-bit signed integer value.
int4 getValue()
Get the value of this 32-bit signed integer, as an int4, suitable for use as a parameter to other SignedInt4 instances.
void setValue(int4 v)
Set the value of this 32-bit signed integer.
bool isNegative()
Test is this signed integer instance currently holds a negative value.
void invert()
Invert the sign of this signed integer instance, changing it from positive to negative, or vice-versa.
byte[] getBytes()
Get the raw bytes of this signed integer instance.