BimCT SDK / WebGL2 Viewer
    Preparing search index...

    Class Int64

    Class to hold a 64-bit integer. Javascript does not support such numbers so internally we use two number fields to hold the high and low bits.

    Index

    Constructors

    Accessors

    • get lowBytes(): number

      Gets the low bytes of this Int64 object.

      Returns number

      The low bytes.

    • get highBytes(): number

      Gets the high bytes of this Int64 object.

      Returns number

      The high bytes.

    Methods

    • Create a new Int64 from two numbers.

      Parameters

      • hiBytes: number

        A Int32 holding the high bytes.

      • lowbytes: number

        A Int32 holding the low bytes.

      Returns Int64

      The resulting Int64 object.

    • Converts a number or Int64 object to an Int64 object.

      Parameters

      • n: number | Int64

        The number or Int64 object.

      Returns Int64

      The resulting Int64 object.

    • Creates a new Int64 from a SimpleInt64 object.

      Parameters

      Returns Int64

      The resulting Int64 object.

    • Converts an array of SimpleInt64 objects to an array of Int64 objects.

      Parameters

      Returns Int64[]

      The resulting array of Int64 objects.

    • Converts an array of Int64 objects to an array of SimpleInt64 objects.

      Parameters

      • input: Int64[]

        The array of Int64 objects.

      Returns SimpleInt64[]

      The resulting array of SimpleInt64 objects.

    • Creates a new Int64 from a javascript number.

      Parameters

      • input: number

        A javascript number that then is broken in high and low bytes.

      Returns Int64

      The resulting Int64 object.

    • Creates a new Int64 from a bigint.

      Parameters

      • input: bigint

        The bigint.

      Returns Int64

      The resulting Int64 object.

    • Converts this Int64 object to a SimpleInt64 object.

      Returns SimpleInt64

      The resulting SimpleInt64 object.

    • Checks if this Int64 object is equal to another Int64 object or number.

      Parameters

      • other: number | Int64

        The other Int64 object or number.

      Returns boolean

      True if equal, false otherwise.

    • The comparison is done by converting both this object and the other into plain javascript numbers and then comparing these values

      Parameters

      Returns number

    • Converts this Int64 object to a debug string.

      Returns string

      The debug string.

    • Converts this Int64 object to a plain javascript number. Not all values can be converted.

      Returns number

      The resulting number.

    • Converts this Int64 object to a bigint.

      Returns bigint

      The resulting bigint.

    • Parameters

      • hint: string

      Returns string | number | bigint

    • Converts this Int64 object to a SimpleInt64 object.

      Returns string

      The resulting SimpleInt64 object.