Файл vendor/intervention/gif/src/Decoders/DataSubBlockDecoder.php Вес запакованого файла 270b (270 b) Вес распакованого файла: 527b (527 b) Метод сжатия: 8
<?php
declare(strict_types=1);
namespace Intervention\Gif\Decoders;
use Intervention\Gif\Blocks\DataSubBlock;
use Intervention\Gif\Exceptions\FormatException;
class DataSubBlockDecoder extends AbstractDecoder
{
/**
* Decode current sourc
*
* @throws FormatException
* @return DataSubBlock
*/
public function decode(): DataSubBlock
{
$char = $this->getNextByte();
$size = (int) unpack('C', $char)[1];
return new DataSubBlock($this->getNextBytes($size));
}
}