MessagePackUnpacker::feed PHP Method

feed() public method

public feed ( string $str )
$str string
    public function feed($str)
    {
    }

Usage Example

示例#1
0
 private function nextRpcMsg()
 {
     while (socket_recv($this->socket, $buf, 1024, 0)) {
         $this->unpacker->feed($buf);
         while ($this->unpacker->execute()) {
             $unserialized = $this->unpacker->data();
             $this->unpacker->reset();
             (yield $unserialized);
         }
     }
 }
All Usage Examples Of MessagePackUnpacker::feed