Lines Matching refs:x
261 * @param string $x
264 public static function bits2bin($x) argument
273 if (preg_match('#[^01]#', $x)) {
281 $length = strlen($x);
288 $x = str_repeat('0', $pad) . $x;
291 $parts = str_split($x, $block_size);
308 * @param string $x
311 public static function bin2bits($x, $trim = true) argument
321 $len = strlen($x);
324 $x = str_pad($x, $len + PHP_INT_SIZE - $mod, "\0", STR_PAD_LEFT);
329 $digits = unpack('N*', $x);
334 $digits = unpack('J*', $x);
347 * @param string $x
350 public static function switchEndianness($x) argument
353 for ($i = strlen($x) - 1; $i >= 0; $i--) {
354 $b = ord($x[$i]);