BossBey File Manager
PHP:
8.2.30
OS:
Linux
User:
imagivibe
Root
/
home
/
imagivibe
/
www
/
app.imagivibe.com
/
vendor
/
intervention
/
gif
/
src
/
Encoders
📤 Upload
📝 New File
📁 New Folder
Close
Editing: DataSubBlockEncoder.php
<?php declare(strict_types=1); namespace Intervention\Gif\Encoders; use Intervention\Gif\Blocks\DataSubBlock; class DataSubBlockEncoder extends AbstractEncoder { /** * Create new instance * * @param DataSubBlock $source */ public function __construct(DataSubBlock $source) { $this->source = $source; } /** * Encode current source * * @return string */ public function encode(): string { return pack('C', $this->source->getSize()) . $this->source->getValue(); } }
Save
Cancel