* Converts the specified value to a UInt64 using the appropriate from* function for its type. * @param {!Int64|!UInt64|number|string} value Value * @returns {!UInt64} The corresponding UInt64 value
(value)
| 1116 | * @returns {!UInt64} The corresponding UInt64 value |
| 1117 | */ |
| 1118 | static fromValue (value) { |
| 1119 | if (typeof value === 'number') { |
| 1120 | return UInt64.fromNumber(value) |
| 1121 | } |
| 1122 | if (typeof value === 'string') { |
| 1123 | return UInt64.fromString(value, 10) |
| 1124 | } |
| 1125 | return UInt64.fromBits(value.low, value.high) |
| 1126 | } |
| 1127 | |
| 1128 | /** |
| 1129 | * Converts the UInt64 to its bytes representation |
nothing calls this directly
no test coverage detected