Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/kafkasaur/src/utils/long.ts>default

A Kafka Client for Deno!
Latest
class default
import { default } from "https://deno.land/x/kafkasaur@v0.0.7/src/utils/long.ts";

Constructors

new
default(value: any)

Properties

value: any

Methods

add(addend: any)

Returns the sum of this and the specified Long.

and(other: any)

Returns the bitwise AND of this Long and the specified.

compare(other: any)

Compares this Long's value with the specified's.

divide(divisor: any)

Returns this Long divided by the specified. The result is signed if this Long is signed or unsigned if this Long is unsigned.

equals(other: any)

Tests if this Long's value equals the specified's.

Gets the high 32 bits as a signed integer.

Gets the low 32 bits as a signed integer.

greaterThanOrEqual(other: any)

Tests if this Long's value is greater than or equal the specified's.

gte(other: any)

Tests if this Long's value is negative.

Tests if this Long's value equals zero.

lessThan(other: any)

Tests if this Long's value is less than the specified's.

multiply(multiplier: any)

Returns the product of this and the specified Long.

Negates this Long's value.

not()

Returns the bitwise NOT of this Long.

notEquals(other: any)
or(other: any)

Returns the bitwise OR of this Long and the specified.

shiftLeft(numBits: any)

Returns this Long with bits shifted to the left by the given amount.

shiftRight(numBits: any)

Returns this Long with bits arithmetically shifted to the right by the given amount.

shiftRightUnsigned(numBits: any)

Returns this Long with bits logically shifted to the right by the given amount.

subtract(subtrahend: any)

Returns the difference of this and the specified Long.

Converts the Long to a 32 bit integer, assuming it is a 32 bit integer.

Converts the Long to the nearest floating-point representation (double, 53-bit mantissa)

Converts the Long to a string written in the specified radix.

xor(other: any)

Returns the bitwise XOR of this Long and the given one.

Static Properties

MAX_VALUE: any
MIN_VALUE: any
ONE: any
ZERO: any

Static Methods

fromBits(value: any)
fromInt(value: any)
fromNumber(value: any)
fromString(str: any)
fromValue(val: any)
isLong(obj: any)