array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'syncsharedmemory.size.php', 1 => 'SyncSharedMemory::size', 2 => 'Returns the size of the named shared memory', ), 'up' => array ( 0 => 'class.syncsharedmemory.php', 1 => 'SyncSharedMemory', ), 'prev' => array ( 0 => 'syncsharedmemory.read.php', 1 => 'SyncSharedMemory::read', ), 'next' => array ( 0 => 'syncsharedmemory.write.php', 1 => 'SyncSharedMemory::write', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/sync/syncsharedmemory/size.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

SyncSharedMemory::size

(PECL sync >= 1.1.0)

SyncSharedMemory::sizeReturns the size of the named shared memory

Beschreibung

public SyncSharedMemory::size(): int

Retrieves the shared memory size of a SyncSharedMemory object.

Parameter-Liste

Diese Funktion besitzt keine Parameter.

Rückgabewerte

An integer containing the size of the shared memory. This will be the same size that was passed to the constructor.

Beispiele

Beispiel #1 SyncSharedMemory::size() example

<?php
$mem
= new SyncSharedMemory("AppReportName", 1024);
var_dump($mem->size());
?>

Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:

int(1024)

Siehe auch