denpamusic/php-levin

View on GitHub
src/BufferInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace Denpa\Levin;

interface BufferInterface
{
    /**
     * Converts buffer to binary.
     *
     * @return string
     */
    public function toBinary(): string;

    /**
     * Converts buffer to hex.
     *
     * @return string
     */
    public function toHex(): string;

    /**
     * Gets buffer size in bytes.
     *
     * @return int
     */
    public function getByteSize(): int;
}