* Appends bytes to this buffer. * @param string $str * @returns integer count of bytes written. */
($str)
| 109 | * @returns integer count of bytes written. |
| 110 | */ |
| 111 | private function appendStr($str) |
| 112 | { |
| 113 | $this->checkClosed(); |
| 114 | $this->string_buffer .= $str; |
| 115 | $len = strlen($str); |
| 116 | $this->current_index += $len; |
| 117 | return $len; |
| 118 | } |
| 119 | |
| 120 | /** |
| 121 | * @returns string bytes read from buffer |