Swoole\Mmap::open

(PHP 5 >= 5.2.0, PHP 7, PECL swoole >= 1.9.0)

Swoole\Mmap::openMap a file into memory and return the stream resource which can be used by PHP stream operations.

说明

public static Swoole\Mmap::open ( string $filename [, string $size [, string $offset ]] ) : ReturnType

参数

filename

size

offset

返回值

相关文章
php map returns a representation that can be converted to jsonphp mcve 函数 returns array of strings which represents the keys that can be used for response parameters on this transactionphp runkit 函数 determines if the current functions return value will be usedphp svn 函数 creates and returns a stream that will be used to replacephp swoole 函数 read file stream asynchronouslyphp swoole 函数 write data to a file stream asynchronouslyphp swoole 函数 get the file description which are ready to read/write or errorphp swoole 函数 select the file descriptions which are ready to read/write or error in the eventloopphp harufont calculate the number of characters which can be included within the specified widthphp harupage calculate the byte length of characters which can be included on one line of the specified widthphp judy return the memory used by the judy arrayphp mongogridfsfile returns a resource that can be used to read the stored filephp soapserver sets the object which will be used to handle soap requestsphp solrquery returns an offset into the list of constraints to be used for paginationphp swoole async read file stream asynchronously.php swoole buffer append the string or binary data at the end of the memory buffer and return the new size of memory allocated.php swoole buffer release the memory to os which is not used by the memory buffer.php swoole mmap map a file into memory and return the stream resource which can be used by php stream operations.php swoole server shutdown the master server process this function can be called in worker processes.php zookeeper sets the stream to be used by the library for logging
关注编程学问公众号