| 12345678910111213141516171819202122232425262728293031 |
- <?php
- /*
- * This file is a part of "charcoal-dev/buffers" package.
- * https://github.com/charcoal-dev/buffers
- *
- * Copyright (c) Furqan A. Siddiqui <hello@furqansiddiqui.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code or visit following link:
- * https://github.com/charcoal-dev/buffers/blob/master/LICENSE
- */
- declare(strict_types=1);
- namespace Charcoal\Buffers\Frames;
- use Charcoal\Buffers\AbstractFixedLenBuffer;
- /**
- * Class Bytes20
- * - Use this frame for buffers of precisely 20 bytes.
- * - If value is smaller than 20 bytes, LengthException will be thrown.
- * @package Charcoal\Buffers\Frames
- */
- class Bytes20 extends AbstractFixedLenBuffer
- {
- public const SIZE = 20; // Fixed frame-size of 20 bytes
- protected const PAD_TO_LENGTH = null; // No padding, constructor argument MUST be precisely 20 bytes
- use CompareSmallFramesTrait;
- }
|