. * * @author Daniil Gentili * @copyright 2016-2023 Daniil Gentili * @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 */ interface ReadBufferInterface { /** * Read data asynchronously. * * @param int $length How much data to read */ public function bufferRead(int $length): ?string; }