SyncSharedMemory::size

Returns the size of the named shared memory

Beschreibung

public bool SyncSharedMemory::size ( void )

Retrieves the shared memory size of a SyncSharedMemory object.

Parameter-Liste

Diese Funktion hat 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

  • SyncSharedMemory::__construct
  • SyncSharedMemory::write
  • SyncSharedMemory::read