1
0
mirror of https://github.com/xPaw/PHP-Source-Query.git synced 2026-05-18 12:53:34 +02:00

Pass length into ReadInternal

This commit is contained in:
Pavel Djundik
2015-10-22 12:24:34 +03:00
parent 2bbe339458
commit 98749925c7
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -40,7 +40,7 @@
abstract public function Write( $Header, $String = '' );
abstract public function Read( $Length = 1400 );
protected function ReadInternal( $Buffer, $SherlockFunction )
protected function ReadInternal( $Buffer, $Length, $SherlockFunction )
{
if( $Buffer->Remaining( ) === 0 )
{
+1 -1
View File
@@ -73,7 +73,7 @@
$Buffer = new Buffer( );
$Buffer->Set( FRead( $this->Socket, $Length ) );
$this->ReadInternal( $Buffer, [ $this, 'Sherlock' ] );
$this->ReadInternal( $Buffer, $Length, [ $this, 'Sherlock' ] );
return $Buffer;
}