« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 22 for SyncSharedMemory (0.001 sec.)
Constructs a new SyncSharedMemory object 9999
« SyncSharedMemory SyncSharedMemory::first » PHP Manual SyncSharedMemory Constructs a new SyncSharedMemory object 検索 SyncSharedMemory::__construct (PECL sync >= 1.1.0) SyncSharedMemory::__construct — Constructs a new SyncSharedMemory obje ... ct 説明 public function SyncSharedMemory::__construct ( string $name , int $size ) Constructs a named shared memory object. パラメータ name The name of the shared ... emory to reserve. 注意 : The amount of memory cannot be resized later. Request sufficient storage up front. 戻り値 The new SyncSharedMemory object. エラー / 例外 An exception is thrown if the shared memory object cannot be created or opened. 例 例1 SyncSharedMem ... memory with other synchronization objects. // Shared memory goes away when the last reference to it disappears. $mem = new SyncSharedMemory ( "AppReportName" , 1024 ); if ( $mem -> first ()) { // Do first time initialization work here. } $result = $mem -> write ...
https://man.mtool.work/php/8.3/syncsharedmemory.construct.html
Returns the size of the named shared memory 9999
« SyncSharedMemory::read SyncSharedMemory::write » PHP Manual SyncSharedMemory Returns the size of the named shared memory 検索 SyncSharedMemory::size (PECL sync >= 1.1.0) SyncSharedMemory::size — Returns the size of the named shared memory ... 説明 public function SyncSharedMemory::size (): int Retrieves the shared memory size of a SyncSharedMemory object. パラメータ この関数にはパラメータはありません ... An integer containing the size of the shared memory. This will be the same size that was passed to the constructor. 例 例1 SyncSharedMemory::size() example <?php $mem = new SyncSharedMemory ( "AppReportName" , 1024 ); var_dump ( $mem -> size ()); ?> 上の例の出力 ... は、 たとえば以下のようになります。 int(1024) 参考 SyncSharedMemory::__construct() - Constructs a new SyncSharedMemory object SyncSharedMemory::write() - Copy data to named shared memory Syn ...
https://man.mtool.work/php/8.3/syncsharedmemory.size.html
Constructs a new SyncSharedMemory object 9999
« SyncSharedMemory SyncSharedMemory::first » PHP Manual SyncSharedMemory Constructs a new SyncSharedMemory object 検索 SyncSharedMemory::__construct (PECL sync >= 1.1.0) SyncSharedMemory::__construct — Constructs a new SyncSharedMemory obje ... ct 説明 public function SyncSharedMemory::__construct ( string $name , int $size ) Constructs a named shared memory object. パラメータ name The name of the shared ... emory to reserve. 注意 : The amount of memory cannot be resized later. Request sufficient storage up front. 戻り値 The new SyncSharedMemory object. エラー / 例外 An exception is thrown if the shared memory object cannot be created or opened. 例 例1 SyncSharedMem ... memory with other synchronization objects. // Shared memory goes away when the last reference to it disappears. $mem = new SyncSharedMemory ( "AppReportName" , 1024 ); if ( $mem -> first ()) { // Do first time initialization work here. } $result = $mem -> write ...
https://man.mtool.work/php/8.3/syncsharedmemory.construct.html
Returns the size of the named shared memory 9999
« SyncSharedMemory::read SyncSharedMemory::write » PHP Manual SyncSharedMemory Returns the size of the named shared memory 検索 SyncSharedMemory::size (PECL sync >= 1.1.0) SyncSharedMemory::size — Returns the size of the named shared memory ... 説明 public function SyncSharedMemory::size (): int Retrieves the shared memory size of a SyncSharedMemory object. パラメータ この関数にはパラメータはありません ... An integer containing the size of the shared memory. This will be the same size that was passed to the constructor. 例 例1 SyncSharedMemory::size() example <?php $mem = new SyncSharedMemory ( "AppReportName" , 1024 ); var_dump ( $mem -> size ()); ?> 上の例の出力 ... は、 たとえば以下のようになります。 int(1024) 参考 SyncSharedMemory::__construct() - Constructs a new SyncSharedMemory object SyncSharedMemory::write() - Copy data to named shared memory Syn ...
https://man.mtool.work/php/8.3/syncsharedmemory.size.html
Check to see if the object is the first instance system-wide of named shared mem... 9814
« SyncSharedMemory::__construct SyncSharedMemory::read » PHP Manual SyncSharedMemory Check to see if the object is the first instance system-wide of named shared memory 検索 SyncSharedMemory::first (PECL sync >= 1.1.0) SyncSharedMemory::fir ... st — Check to see if the object is the first instance system-wide of named shared memory 説明 public function SyncSharedMemory::first (): bool Retrieves the system-wide first instance status of a SyncSharedMemory object. パラメータ この関数にはパラメ ... ータはありません。 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 SyncSharedMemory::first() example <?php $mem = new SyncSharedMemory ( "AppReportName" , 1024 ); if ( $mem -> first ()) { // Do first time i ... nitialization work here. } var_dump ( $mem -> first ()); $mem2 = new SyncSharedMemory ( "AppReportName" , 1024 ); var_dump ( $mem2 -> first ()); ?> 上の例の出力は、 たとえば以下のようになります。 bool(true) b ...
https://man.mtool.work/php/8.3/syncsharedmemory.first.html
Check to see if the object is the first instance system-wide of named shared mem... 9814
« SyncSharedMemory::__construct SyncSharedMemory::read » PHP Manual SyncSharedMemory Check to see if the object is the first instance system-wide of named shared memory 検索 SyncSharedMemory::first (PECL sync >= 1.1.0) SyncSharedMemory::fir ... st — Check to see if the object is the first instance system-wide of named shared memory 説明 public function SyncSharedMemory::first (): bool Retrieves the system-wide first instance status of a SyncSharedMemory object. パラメータ この関数にはパラメ ... ータはありません。 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 SyncSharedMemory::first() example <?php $mem = new SyncSharedMemory ( "AppReportName" , 1024 ); if ( $mem -> first ()) { // Do first time i ... nitialization work here. } var_dump ( $mem -> first ()); $mem2 = new SyncSharedMemory ( "AppReportName" , 1024 ); var_dump ( $mem2 -> first ()); ?> 上の例の出力は、 たとえば以下のようになります。 bool(true) b ...
https://man.mtool.work/php/8.3/syncsharedmemory.first.html
Copy data from named shared memory 9797
« SyncSharedMemory::first SyncSharedMemory::size » PHP Manual SyncSharedMemory Copy data from named shared memory 検索 SyncSharedMemory::read (PECL sync >= 1.1.0) SyncSharedMemory::read — Copy data from named shared memory 説明 public funct ... ion SyncSharedMemory::read ( int $start = 0 , int $length = ? ) Copies data from named shared memory. パラメータ start The start/offset, in byt ... er of bytes from the end of the shared memory segment. 戻り値 A string containing the data read from shared memory. 例 例1 SyncSharedMemory::__construct() example <?php // You will probably need to protect shared memory with other synchronization objects. // Sha ... red memory goes away when the last reference to it disappears. $mem = new SyncSharedMemory ( "AppReportName" , 1024 ); if ( $mem -> first ()) { // Do first time initialization work here. } $result = $mem -> write ...
https://man.mtool.work/php/8.3/syncsharedmemory.read.html
Copy data from named shared memory 9797
« SyncSharedMemory::first SyncSharedMemory::size » PHP Manual SyncSharedMemory Copy data from named shared memory 検索 SyncSharedMemory::read (PECL sync >= 1.1.0) SyncSharedMemory::read — Copy data from named shared memory 説明 public funct ... ion SyncSharedMemory::read ( int $start = 0 , int $length = ? ) Copies data from named shared memory. パラメータ start The start/offset, in byt ... er of bytes from the end of the shared memory segment. 戻り値 A string containing the data read from shared memory. 例 例1 SyncSharedMemory::__construct() example <?php // You will probably need to protect shared memory with other synchronization objects. // Sha ... red memory goes away when the last reference to it disappears. $mem = new SyncSharedMemory ( "AppReportName" , 1024 ); if ( $mem -> first ()) { // Do first time initialization work here. } $result = $mem -> write ...
https://man.mtool.work/php/8.3/syncsharedmemory.read.html
Copy data to named shared memory 9713
« SyncSharedMemory::size その他の基本モジュール » PHP Manual SyncSharedMemory Copy data to named shared memory 検索 SyncSharedMemory::write (PECL sync >= 1.1.0) SyncSharedMemory::write — Copy data to named shared memory 説明 public function ... SyncSharedMemory::write ( string $string = ? , int $start = 0 ) Copies data to named shared memory. パラメータ string The data to write to ... om the end of the shared memory segment. 戻り値 An integer containing the number of bytes written to shared memory. 例 例1 SyncSharedMemory::write() example <?php // You will probably need to protect shared memory with other synchronization objects. // Shared me ... mory goes away when the last reference to it disappears. $mem = new SyncSharedMemory ( "AppReportName" , 1024 ); if ( $mem -> first ()) { // Do first time initialization work here. } $result = $mem -> write ...
https://man.mtool.work/php/8.3/syncsharedmemory.write.html
The SyncSharedMemory class 9679
« SyncReaderWriter::writeunlock SyncSharedMemory::__construct » PHP Manual Sync The SyncSharedMemory class 検索 The SyncSharedMemory class (PECL sync >= 1.1.0) はじめに A cross-platform, native, consistent implementation of named shared mem ... ative. Synchronization objects (e.g. SyncMutex) are still required to protect most uses of shared memory. クラス概要 class SyncSharedMemory { /* メソッド */ public function __construct ( string $name , int $size ) public function first (): bool public function r ... = 0 , int $length = ? ) public function size (): int public function write ( string $string = ? , int $start = 0 ) } 目次 SyncSharedMemory::__construct — Constructs a new SyncSharedMemory object SyncSharedMemory::first — Check to see if the object is the first ... instance system-wide of named shared memory SyncSharedMemory::read — Copy data from named shared memory SyncSharedMemory::size — Returns the size of the named shared memory SyncShared ...
https://man.mtool.work/php/8.3/class.syncsharedmemory.html
PREV 1 2 3 NEXT