You are here

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

Get the size of the stream if known.

Return value

int|null Returns the size in bytes if known, or null if unknown.

Overrides StreamInterface::getSize

File

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

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 getSize() {
  return strlen($this->buffer);
}