Results of 1 - 10 of about 203 for buffer (0.005 sec.)
- The Swoole\Buffer class | PHP 8.3 8838
- The Swoole\Buffer class (PECL swoole >= 1.9.0) はじめに クラス概要 class Swoole\Buffer { /* メソッド */ public function append ( string $data ): int public function clear (): void public function __destruct (): void public function expand (
... ? ): string public function __toString (): string public function write ( int $offset , string $data ): void } 目次 Swoole\Buffer::append — Append the string or binary data at the end of the memory buffer and return the new size of memory allocated. Sw ... oole\Buffer::clear — Reset the memory buffer. Swoole\Buffer::__construct — Fixed size memory blocks allocation. Swoole\Buffer::__destr ... uct — Destruct the Swoole memory buffer. Swoole\Buffer::expand — Expand the size of memory buffer. Swoole\Buffer::read — Read data from the memory buffer based on ...
-
https://man.mtool.work/php/8.3/class.swoole-buffer.html
- Event | PHP 8.3 8720
- Event はじめに This is an extension to efficiently schedule I/O, time and signal based events using the best I/O notification mechanism available for specific platform. This is a port of libevent to the PHP infrastructure. 注意 : Note, Wind
... ntBase::reInit — Re-initialize event base(after a fork) EventBase::stop — Tells event_base to stop dispatching events EventBuffer — The EventBuffer class EventBuffer::add — Append data to the end of an event buffer EventBuffer::addBuffer — Move all dat ... a from a buffer provided to the current instance of EventBuffer EventBuffer::appendFrom — Moves the specified number of bytes from a sourc ... e buffer to the end of the current buffer EventBuffer::__construct — Constructs EventBuffer object EventBuffer::copyout — Copies ou ...
-
https://man.mtool.work/php/8.3/book.event.html
- The EventBufferEvent class | PHP 8.3 8699
- The EventBufferEvent class (PECL event >= 1.2.6-beta) はじめに Represents Libevent's buffer event. Usually an application wants to perform some amount of data buffering in addition to just responding to events. When we want to write data, f
... or example, the usual pattern looks like: Decide that we want to write some data to a connection; put that data in a buffer. Wait for the connection to become writable Write as much of the data as we can Remember how much we wrote, and if we stil ... l have more data to write, wait for the connection to become writable again. This buffered I/O pattern is common enough that Libevent provides a generic mechanism for it. A "buffer event" consists of an underlyi ... ng transport (like a socket), a read buffer, and a write buffer. Instead of regular events, which give callbacks when the underlying transport is ready to be read or ...
-
https://man.mtool.work/php/8.3/class.eventbufferevent.html
- The EventBuffer class | PHP 8.3 8239
- The EventBuffer class (PECL event >= 1.5.0) はじめに EventBuffer represents Libevent's "evbuffer", an utility functionality for buffered I/O. Event buffers are meant to be generally useful for doing the "buffer" part of buffered network I/O
... . クラス概要 class EventBuffer { /* 定数 */ const int EOL_ANY = 0 ; const int EOL_CRLF = 1 ; const int EOL_CRLF_STRICT = 2 ; const int EOL_LF = 3 ; const ... th ; public readonly int $ contiguous_space ; /* メソッド */ public function add ( string $data ): bool public function addBuffer ( EventBuffer $buf ): bool public function appendFrom ( EventBuffer $buf , int $len ): int public function __construct () ... bool $at_front ): bool public function lock (): void public function prepend ( string $data ): bool public function prependBuffer ( EventBuffer $buf ): bool public function pullup ( int $size ): string public function read ( int $max_bytes ): string pu ...
-
https://man.mtool.work/php/8.3/class.eventbuffer.html
- EventBufferEvent::getInput — Returns underlying input buffer associated with cu... 7907
- EventBufferEvent::getInput (PECL event >= 1.2.6-beta) EventBufferEvent::getInput — Returns underlying input buffer associated with current buffer event 説明 public function EventBufferEvent::getInput (): EventBuffer Returns underlying input
... buffer associated with current buffer event. An input buffer is a storage for data to read. Note, there is also input property of ... EventBufferEvent class. パラメータ この関数にはパラメータはありません。 戻り値 Returns instance of EventBuffer input buffer associated ... with current buffer event. 例 例1 Buffer event's read callback <?php function readcb ( $bev , $base ) { $input = $bev -> input ; //$bev->getIn ...
-
https://man.mtool.work/php/8.3/eventbufferevent.getinput.html
- SeasLog::getBufferEnabled — Determin if buffer enabled | PHP 8.3 7907
- SeasLog::getBufferEnabled (PECL seaslog >=1.0.0) SeasLog::getBufferEnabled — Determin if buffer enabled 説明 public static function SeasLog::getBufferEnabled (): bool Result join seaslog.use_buffer and seaslog.buffer_disabled_in_cli . パラメ
... ータ この関数にはパラメータはありません。 戻り値 Return TRUE on seaslog.use_buffer is true. If switch seaslog.buffer_disabled_in_cli on, and running in cli, seaslog.use_buffer setting will be discarded, Se ... aslog write to the Data Store IMMEDIATELY. 例 例1 SeasLog::getBufferEnabled() example <?php var_dump ( SeasLog :: getBufferEnabled ()); ?> 上の例の出力は、 たとえば以下のようになります。 bool ... (false) 参考 seaslog.use_buffer seaslog.buffer_size seaslog.buffer_disabled_in_cli SeasLog::getBuffer() - Get the logs buffer in memory as array SeasLog:: ...
-
https://man.mtool.work/php/8.3/seaslog.getbufferenabled.html
- EventBuffer::pullup — Linearizes data within buffer and returns its contents as... 7875
- EventBuffer::pullup (PECL event >= 1.2.6-beta) EventBuffer::pullup — Linearizes data within buffer and returns its contents as a string 説明 public function EventBuffer::pullup ( int $size ): string "Linearizes" the first size bytes of the
... at they are all contiguous and occupying the same chunk of memory. If size is negative, the function linearizes the entire buffer. 警告 Calling EventBuffer::pullup() with a large size can be quite slow, since it potentially needs to copy the entire buf ... fer's contents. パラメータ size The number of bytes required to be contiguous within the buffer. 戻り値 If size is greater than the number of bytes in the buffer, the function returns null . Otherwise, EventBuffer::pul ... lup() returns string. 参考 EventBuffer::copyout() - Copies out specified number of bytes from the front of the buffer EventBuffer::drain() - Removes specified nu ...
-
https://man.mtool.work/php/8.3/eventbuffer.pullup.html
- EventBuffer::appendFrom — Moves the specified number of bytes from a source buf... 7854
- EventBuffer::appendFrom (PECL event >= 1.6.0) EventBuffer::appendFrom — Moves the specified number of bytes from a source buffer to the end of the current buffer 説明 public function EventBuffer::appendFrom ( EventBuffer $buf , int $len ):
... int Moves the specified number of bytes from a source buffer to the end of the current buffer. If there are fewer number of bytes, it moves all the bytes available from the source buf ... fer. パラメータ buf Source buffer. len 戻り値 Returns the number of bytes read. 変更履歴 バージョン 説明 PECL event 1.6.0 Renamed EventBuffer::appendFrom() ... (the old method name) to EventBuffer::appendFrom() . 参考 EventBuffer::copyout() - Copies out specified number of bytes from the front of the buffer EventBuffe ...
-
https://man.mtool.work/php/8.3/eventbuffer.appendfrom.html
- Swoole\Buffer::substr — Read data from the memory buffer based on offset and le... 7854
- Swoole\Buffer::substr (PECL swoole >= 1.9.0) Swoole\Buffer::substr — Read data from the memory buffer based on offset and length. Or remove data from the memory buffer. 説明 public function Swoole\Buffer::substr ( int $offset , int $length
... ? , bool $remove = ? ): string If $remove is set to be true and $offset is set to be 0, the data will be removed from the buffer. The memory for storing the data will be released when the buffer object is deconstructed. パラメータ offset The offset. l ... ength The length. remove Whether to remove the data from the memory buffer. 戻り値 The data or string read from the memory buffer. 他のマニュアルの関連ページ Vim if_ruby Python mmap Linux JM remove ...
-
https://man.mtool.work/php/8.3/swoole-buffer.substr.html
- EventBufferEvent::write — Adds data to a buffer event's output buffer | PHP 8.3 7629
- EventBufferEvent::write (PECL event >= 1.2.6-beta) EventBufferEvent::write — Adds data to a buffer event's output buffer 説明 public function EventBufferEvent::write ( string $data ): bool Adds data to a buffer event's output buffer パラメー
... タ data Data to be added to the underlying buffer. 戻り値 成功した場合に true を、失敗した場合に false を返します。 参考 EventBufferEvent::writeBuffer() - Adds contents of ... the entire buffer to a buffer event's output buffer 他のマニュアルの関連ページ Linux JM fwrite(3) Linux JM fread(3) Linux JM stpcpy(3) Linux ... JM pthread_key_create(3) Django outputting-pdf Python picklebuffer ...
-
https://man.mtool.work/php/8.3/eventbufferevent.write.html