Lines Matching refs:Int64
2 * @fileoverview Protobufs Int64 representation.
4 goog.module('protobuf.Int64');
10 * A container for protobufs Int64/Uint64 data type.
13 class Int64 {
14 /** @return {!Int64} */
19 /** @return {!Int64} */
24 /** @return {!Int64} */
30 * Constructs a Int64 given two 32 bit numbers
33 * @return {!Int64}
36 return new Int64(lowBits, highBits);
40 * Constructs an Int64 from a signed 32 bit number.
42 * @return {!Int64}
50 return new Int64(value, signExtendedHighBits);
54 * Constructs an Int64 from a number (over 32 bits).
56 * @return {!Int64}
60 return new Int64(value, value / TWO_PWR_32_DBL);
68 * Construct an Int64 from a signed decimal string.
70 * @return {!Int64}
82 * Construct an Int64 from a signed hexadecimal string.
84 * @return {!Int64}
95 return (minus ? negate : Int64.fromBits)(lowBits, highBits);
107 * Creates an Int64 instance from a Long value.
109 * @return {!Int64}
112 return new Int64(value.getLowBits(), value.getHighBits());
185 * Returns an unsigned hexadecimal string representation of the Int64.
208 * @return {boolean} Whether this Int64 equals the other.
214 if (!(other instanceof Int64)) {
218 const otherInt64 = /** @type{!Int64} */ (other);
235 * @param {!Int64} int64
306 * @param {!Int64} int64
323 * @return {!Int64}
354 return (minus ? negate : Int64.fromBits)(lowBits, highBits);
360 * @return {!Int64} Two's compliment negation of input.
373 return Int64.fromBits(lowBits, highBits);
376 /** @const {!Int64} */
377 const ZERO = new Int64(0, 0);
391 /** @const {!Int64} */
392 const MAX_VALUE = Int64.fromBits(ALL_32_BITS, LOW_31_BITS);
394 /** @const {!Int64} */
395 const MIN_VALUE = Int64.fromBits(0, 0x80000000);
403 exports = Int64;