Вход Регистрация
Файл: vendor/intervention/gif/src/Decoders/DataSubBlockDecoder.php
Строк: 23
<?php

declare(strict_types=1);

namespace 
InterventionGifDecoders;

use 
InterventionGifBlocksDataSubBlock;
use 
InterventionGifExceptionsFormatException;

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));
    }
}
Онлайн: 1
Реклама