MfUInt64

Namespace ›› System ››
Parent Previous Next

MfUInt64 Class

(Inherits from MfPrimitive)

Represents Unsigned Integer 64 bit object

Links

Fields, Properties, Methods, Remarks, Example

Constructors


Name

Description

Constructor([val, retunAsObj, readonly])

Initializes a new instance of the MfUInt64 class optionally setting the Value property, ReturnAsObject property and the Readonly property.

Fields


Name

Description

MaxValue

Represents the largest possible value of a MfUInt64. This field is constant.

MinValue

Represents the smallest possible value of an MfUInt64. This field is constant.

Properties


Name

Description

ReadOnly

Gets the if the derived class will allow the underlying value to be altered after the constructor has been called. Inherited from MfPrimitive.

ReturnAsObject

Gets or sets the if the MfUInt64 class will return objects as their return value for various functions. Inherited from MfPrimitive

Value

Gets or sets the value associated with the this instance. Overrides MfPrimitive.Value.

Methods


Name

Description

Add(value)

Adds MfUInt64 value to current instance of MfUInt64.

BitAnd(value)

Performs logical AND operation current instance bits and value bits.

BitNot()

Performs logical NOT operation current instance bits

BitOr(value)

Performs logical OR operation current instance bits and value bits.

BitxXor(value)

Performs logical Xor operation current instance bits and value bits.

BitShiftLeft(value)

Performs left shift operation current instance bits by value amount.

BitShiftRight(value)

Performs right shift operation current instance bits by value amount.

CompareTo(obj)

Compares this instance to a specified MfUInt64 instance. Overrides MfObject.CompareTo()

Divide(value)

Divides the current instance of MfUInt64 by the divisor value.

Equals(value)

Gets if this instance Value is the same as the obj instance Value. Overrides MfObject.Equals()

GetHashCode()

Gets A hash code for the current MfUInt64 instance. Overrides MfObject.GetHashCode()

GetType()

Gets the Type for the for the Class .Inherited from MfObject.

GetTypeCode()

Get an enumeration value of MfTypeCode the represents MfUInt64 Type Code.

GetValue(Obj)

Gets the integer number from Object or var containing integer. Overrides MfPrimitive.GetValue()

GetValue(Obj, Default)

Gets a integer number from Obj or returns Default value if Obj is unable to be converted to integer. Default must be a value that can be converted to integer or it will be ignored if Obj can not be converted to byte and an error will be thrown. Overrides MfPrimitive.GetValue()

GetValue(Obj, Default, AllowAny)

Gets a integer var from Obj or returns Default value if Obj is unable to be converted to integer..Default can be something other then a number or integer if AllowAny is true. Overrides MfPrimitive.GetValue()

GreaterThen(value)

Compares the current MfUInt64 object to a specified MfUInt64 object and returns an indication of their relative values.

GreaterThenOrEqual(value)

Compares the current MfUInt64 object to a specified MfUInt64 object and returns an indication of their relative values.

LessThen(value)

Compares the current MfUInt64 object to a specified MfUInt64 object and returns an indication of their relative values.

LessThenOrEqual(value)

Compares the current MfUInt64 object to a specified MfUInt64 object and returns an indication of their relative values.

Multiply(value)

Multiplies the current instance of MfUInt64 by the value.

Is(type)

Gets if current instance of object is of the same type. Inherited from MfObject. Inherited from MfObject.

IsInstance()

Get if the current class is an instance. Inherited from MfObject.

MemberwiseClone()

Creates a shallow copy of the current MfObject instance. Inherited from MfObject.

Parse(s)

Converts the s representation of a number to its MfUInt64 equivalent

Parse(s, style)

Converts the s representation of a number to its MfUInt64 equivalent

Parse(s, provider)

Converts the s representation of a number to its MfUInt64 equivalent

Parse(s, style, provider)

Converts the s representation of a number to its MfUInt64 equivalent

Subtract(value)

Subtracts MfUInt64 value from current instance of MfUInt64.

ToString()

Gets a string representation of the Value of the object. Overrides MfPrimitive.ToString()

TryParse(ByRef result, s)

Tries to converts the s representation of a number to its MfUInt64 equivalent. A return value indicates whether the conversion succeeded.

TryParse(ByRef result, s, style[, provider])

Tries to converts the s representation of a number to its MfUInt64 equivalent. A return value indicates whether the conversion succeeded.

Since

Version 0.4

Remarks

AutoHotkey has a integer upper limit of MfInt64.MaxValue. MfUInt64 can have greater values up to MfUInt.MaxValue. For this reason any integer greater then MfInt64.MaxValue need to be wrapped in double quotes "" eg i := new MfUInt64("9223372036854775900").

When ever possible it is recommended to use a smaller integer object such as MfUInt32 or MfInt64. Integer objects that have values greater then or equals to MfInt64.MinValue or less then or equal to MfInt64.MaxValue are a little more efficient due to direct AutoHotkey support of the numerical values.

Example

mfiVar := new MfUInt64(1001)
mfiMax := new MfUInt64(10000)

While mfiVar.LessThen(mfiMax)
{
       mfiVar.Add(100)
}

MsgBox % mfiVar.Value ; displays 10001

mfInt := new MfUInt64(1001, true) ; set ReturnAsObject property to true
MsgBox % mfInt.Add(23).Add(44).Add(mfiVar).ToString() ; displays 11069

mfIntConst := new MfUInt64(0xFF5C, ,true)

MsgBox % mfIntConst.ToString() ; displays 65372

mfIntConst.Add(10)     ; throws MfNotSupportedException mfIntConst is read-only

mfIntConst.Value := 10 ; throws MfNotSupportedException mfIntConst is read-only