Interface SignedInt8
access this type via: data.SignedInt8 (provides, requires or uses)
An object to represent and manipulate signed 64-bit integers (Dana primitive integers are all unsigned).
Functions
SignedInt8(optional int8 val, int8 neg)
int8 subtract(int8 val)
int8 add(int8 val)
int8 multiply(int8 val)
int8 divide(int8 val)
int8 getValue()
void setValue(int8 v)
bool isNegative()
void invert()
byte[] getBytes()
SignedInt8(optional int8 val, int8 neg)
Creates a new 64-bit signed integer instance, initialised either from an absolute value (val) or from a positive value which should be made negative (neg).
int8 subtract(int8 val)
Subtract a given 64-bit signed integer value from this instance's current value.
int8 add(int8 val)
Add a given 64-bit signed integer value to this instance's current value.
int8 multiply(int8 val)
Multiply this instance's current value by a given 64-bit signed integer value.
int8 divide(int8 val)
Divide this instance's current value by a given 64-bit signed integer value.
int8 getValue()
Get the value of this 64-bit signed integer, as an int4, suitable for use as a parameter to other SignedInt4 instances.
void setValue(int8 v)
Set the value of this 64-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.