Swoole\Buffer::write

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

Swoole\Buffer::writeWrite data to the memory buffer. The memory allocated for the buffer will not be changed.

说明

public Swoole\Buffer::write ( integer $offset , string $data ) : void

参数

offset

The offset.

data

The data to write to the memory buffer.

返回值

相关文章
php sqlite 函数 execute a query that does not prefetch and buffer all dataphp swoole 函数 write data to a file stream asynchronouslyphp swoole 函数 write data to a socketphp harudoc write the document data to the output bufferphp solrquery returns the treshold frequency at which words will be ignored which do not occur in at least this many docsphp 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 reset the memory buffer.php swoole buffer fixed size memory blocks allocation.php swoole buffer destruct the swoole memory buffer.php swoole buffer expand the size of memory buffer.php swoole buffer read data from the memory buffer based on offset and length.php swoole buffer release the memory to os which is not used by the memory buffer.php swoole buffer read data from the memory buffer based on offset and length. or remove data from the memory buffer.php swoole buffer write data to the memory buffer. the memory allocated for the buffer will not be changed.php swoole channel write and push data into swoole channel.php swoole event write data to the socket.php swoole lock try to acquire the lock. it will block if the lock is not available.php swoole lock try to lock a read write lock for reading and return straight away even the lock is not available.php swoole mmap map a file into memory and return the stream resource which can be used by php stream operations.php swoole process write data into the pipe and communicate with the parent process or child processes.
关注编程学问公众号