lib/classes/Swift/CharacterStream/MbCharacterStream.php 1 location
|
@@ 44-52 (lines=9) @@
|
| 41 |
|
/** |
| 42 |
|
* @param Swift_OutputByteStream $os |
| 43 |
|
*/ |
| 44 |
|
public function importByteStream(\Swift_OutputByteStream $os) |
| 45 |
|
{ |
| 46 |
|
$this->flushContents(); |
| 47 |
|
$blocks = 512; |
| 48 |
|
$os->setReadPointer(0); |
| 49 |
|
while (($read = $os->read($blocks)) !== false) { |
| 50 |
|
$this->write($read); |
| 51 |
|
} |
| 52 |
|
} |
| 53 |
|
|
| 54 |
|
/** |
| 55 |
|
* @param string $string |
lib/classes/Swift/CharacterStream/NgCharacterStream.php 1 location
|
@@ 138-146 (lines=9) @@
|
| 135 |
|
* |
| 136 |
|
* @param Swift_OutputByteStream $os |
| 137 |
|
*/ |
| 138 |
|
public function importByteStream(Swift_OutputByteStream $os) |
| 139 |
|
{ |
| 140 |
|
$this->flushContents(); |
| 141 |
|
$blocks = 512; |
| 142 |
|
$os->setReadPointer(0); |
| 143 |
|
|
| 144 |
|
while (false !== ($read = $os->read($blocks))) { |
| 145 |
|
$this->write($read); |
| 146 |
|
} |
| 147 |
|
} |
| 148 |
|
|
| 149 |
|
/** |