Returns an Array from the bits of an integer. The array has as many elements as the position of the highest set bit, or a single 0 for a value of 0. Args: input: The integer to transform.
(input: _arg_types.Integer)
| 192 | @staticmethod |
| 193 | # pylint: disable-next=redefined-builtin |
| 194 | def bitsToArray(input: _arg_types.Integer) -> Array: |
| 195 | """Returns an Array from the bits of an integer. |
| 196 | |
| 197 | The array has as many elements as the position of the highest set bit, or a |
| 198 | single 0 for a value of 0. |
| 199 | |
| 200 | Args: |
| 201 | input: The integer to transform. |
| 202 | """ |
| 203 | |
| 204 | return apifunction.ApiFunction.call_('Array.bitsToArray', input) |
| 205 | |
| 206 | def bitwiseAnd(self, right: _arg_types.Array) -> Array: |
| 207 | """On an element-wise basis, calculates the bitwise AND of the input values. |