LZData.php 544 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace App\Game\Services\LZCompressor;
  3. class LZData
  4. {
  5. /**
  6. * @var
  7. */
  8. public $str = '';
  9. /**
  10. * @var
  11. */
  12. public $val;
  13. /**
  14. * @var int
  15. */
  16. public $position = 0;
  17. /**
  18. * @var int - index of letters (may be multiple of characters)
  19. */
  20. public $index = 1;
  21. /*
  22. * @var bool - set to true if theindex is out of str range
  23. */
  24. public $end = true;
  25. /**
  26. * @param unknown $str
  27. */
  28. public function append($str) {
  29. $this->str .= $str;
  30. }
  31. }