Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. StreamInterface.php

function StreamInterface::getSize

Get the size of the stream if known.

Return value

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

5 methods override StreamInterface::getSize()
AppendStream::getSize in vendor/guzzlehttp/psr7/src/AppendStream.php
Tries to calculate the size by adding the size of each stream.
BufferStream::getSize in vendor/guzzlehttp/psr7/src/BufferStream.php
Get the size of the stream if known.
FnStream::getSize in vendor/guzzlehttp/psr7/src/FnStream.php
Get the size of the stream if known.
PumpStream::getSize in vendor/guzzlehttp/psr7/src/PumpStream.php
Get the size of the stream if known.
Stream::getSize in vendor/guzzlehttp/psr7/src/Stream.php
Get the size of the stream if known.

File

vendor/psr/http-message/src/StreamInterface.php, line 51

Class

StreamInterface
Describes a data stream.

Namespace

Psr\Http\Message

Code

public function getSize() : ?int;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal