static string bin2Int(
string
$string
)
|
|
Transforms binary representation of large integer into string.
Transforms binary representation of large integer into string.
Parameters:
|
string |
$string: |
Binary string. |
API Tags:
| Return: | Numeric representation. |
| Access: | public |
Information Tags:
| Version: | 0.1.2 |
| Since: | 0.1.2 |
static string int2Bin(
string
$number
)
|
|
Transforms large integer into binary string.
Transforms large integer into binary string.
Parameters:
|
string |
$number: |
Large integer. |
API Tags:
| Return: | Binary string. |
| Access: | public |
Information Tags:
| Version: | 0.1.2 |
| Since: | 0.1.2 |
static int unsignedAdd(
int
$a, int
$b
)
|
|
Handle proper unsigned add, dealing with PHP's signed add.
Handle proper unsigned add, dealing with PHP's signed add.
Parameters:
|
int |
$a: |
First number. |
|
int |
$b: |
Second number. |
API Tags:
| Return: | Unsigned sum. |
| Access: | public |
Information Tags:
| Version: | 0.1.2 |
| Since: | 0.1.2 |
static int unsignedRightShift(
int
$integer, int
$n
)
|
|
Handle proper unsigned right shift, dealing with PHP's signed shift.
Handle proper unsigned right shift, dealing with PHP's signed shift.
Parameters:
|
int |
$integer: |
Number to be shifted. |
|
int |
$n: |
Number of bits to shift. |
API Tags:
| Return: | Shifted integer. |
| Access: | public |
Information Tags:
| Version: | 0.1.2 |
| Since: | 0.1.2 |