Lines Matching refs:bytes
57 $bytes = $value;
62 $length = count($bytes);
68 if ($bytes[0] >> 7 == 1) {
73 $bytes[$i] = ~$bytes[$i] & 0xFF;
78 $value = bcadd($value, bcmul($bytes[$i], bcpow(256, $length - $i - 1, 0), 0), 0);
339 $bytes = GTUtil::toByteArray($result);
343 for ($i = 0; $i < count($bytes); $i++) {
344 $bytes[$i] = ~$bytes[$i] & 0xFF;
347 array_unshift($bytes, 0x0);
349 $int = new GTBigInteger($bytes);
352 $bytes = $int->toBytes();
355 while (count($bytes) > 0 && $bytes[0] == 0x0) {
356 array_shift($bytes);
359 return $bytes;
364 if (count($bytes) > 0 && $bytes[0] >> 7 == 1) {
365 array_unshift($bytes, 0x0);
368 return $bytes;