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 dbx 函数 escape a string so it can safely be used in an sql statementphp mcve 函数 returns array of strings which represents the keys that can be used for response parameters on this transactionphp socket 函数 export a socket extension resource into a stream that encapsulates a socketphp 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 judy return the memory used by the judy arrayphp mongogridfsfile returns a resource that can be used to read the stored filephp solrquery returns an offset into the list of constraints to be used for paginationphp swoole async read file stream asynchronously.php swoole async write data to a 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 buffer write data to the memory buffer. the memory allocated for the buffer will not be changed.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
关注编程学问公众号