You are here

public function BufferStream::write in Auth0 Single Sign On 8.2

Writes data to the buffer.

Overrides StreamInterface::write

File

vendor/guzzlehttp/psr7/src/BufferStream.php, line 117

Class

BufferStream
Provides a buffer stream that can be written to to fill a buffer, and read from to remove bytes from the buffer.

Namespace

GuzzleHttp\Psr7

Code

public function write($string) {
  $this->buffer .= $string;

  // TODO: What should happen here?
  if (strlen($this->buffer) >= $this->hwm) {
    return false;
  }
  return strlen($string);
}