Esempio n. 1
0
 public function __construct()
 {
     parent::__construct();
     $this->out = '';
     $this->bits = array();
     $this->bitcount = 0;
 }
Esempio n. 2
0
 /**
  * @param string $str
  * @param AbstractIO $io
  * @param int $timeout
  */
 public function __construct($str, AbstractIO $io = null, $timeout = 0)
 {
     parent::__construct();
     $this->str = $str;
     $this->str_length = mb_strlen($this->str, 'ASCII');
     $this->io = $io;
     $this->offset = 0;
     $this->bitcount = $this->bits = 0;
     $this->timeout = $timeout;
 }