Kickass Crypto

Find us on GitHub: https://github.com/jj5/kickass-crypto.

twiddle.php

2023-04-04 jj5 - bit twiddling helpers.

..

Tags
link
https://github.com/jj5/kickass-crypto

Table of Contents

kickass_crypto_is_set()  : bool
2023-04-05 jj5 - this function tests to see if a given flag is set within a set of flags.
kickass_crypto_bits_split()  : array<int, int>
2023-04-05 jj5 - this function splits a set of flags into a list of singular flag values.

Functions

kickass_crypto_is_set()

2023-04-05 jj5 - this function tests to see if a given flag is set within a set of flags.

kickass_crypto_is_set(int $flags, int $flag) : bool
Parameters
$flags : int

the flags which are specified.

$flag : int

the flag which you're interested in.

Return values
bool

true if the flag is set.

kickass_crypto_bits_split()

2023-04-05 jj5 - this function splits a set of flags into a list of singular flag values.

kickass_crypto_bits_split(int $flags) : array<int, int>
Parameters
$flags : int

the flags which are specified.

Return values
array<int, int>

the list of singular flag values.

Search results