1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-12 06:18:16 +01:00
MadelineProto/src/Stream/ReadBufferInterface.php

37 lines
1.3 KiB
PHP
Raw Normal View History

2022-12-30 21:54:44 +01:00
<?php
declare(strict_types=1);
2020-06-15 20:06:48 +02:00
/**
* Buffer interface.
*
* This file is part of MadelineProto.
* MadelineProto is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
* MadelineProto is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Affero General Public License for more details.
* You should have received a copy of the GNU General Public License along with MadelineProto.
* If not, see <http://www.gnu.org/licenses/>.
*
* @author Daniil Gentili <daniil@daniil.it>
2023-01-04 12:43:01 +01:00
* @copyright 2016-2023 Daniil Gentili <daniil@daniil.it>
2020-06-15 20:06:48 +02:00
* @license https://opensource.org/licenses/AGPL-3.0 AGPLv3
* @link https://docs.madelineproto.xyz MadelineProto documentation
*/
namespace danog\MadelineProto\Stream;
/**
* Read buffer interface.
*
* @author Daniil Gentili <daniil@daniil.it>
*/
interface ReadBufferInterface
{
/**
* Read data asynchronously.
*
* @param int $length How much data to read
*/
2023-01-03 21:51:49 +01:00
public function bufferRead(int $length): ?string;
2020-06-15 20:06:48 +02:00
}