Kraken\Util\Buffer\BufferInterface::drain PHP 메소드

drain() 공개 메소드

Remove and return all data from the buffer.
public drain ( ) : string
리턴 string
    public function drain();

Usage Example

예제 #1
0
 public function testApiDrain_EmptiesBuffer()
 {
     $result = $this->buffer->drain();
     $this->assertSame($this->initialString, $result);
     $this->assertSame('', (string) $this->buffer);
     $this->assertTrue($this->buffer->isEmpty());
 }
All Usage Examples Of Kraken\Util\Buffer\BufferInterface::drain