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 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 runkit 函数 determines if the current functions return value will be usedphp socket 函数 export a socket extension resource into a stream that encapsulates a socketphp 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 函数 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 mongogridfscursor return the next file to which this cursor points and advance the cursorphp 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 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.
关注编程学问公众号