lib/classes/Swift/CharacterStream/NgCharacterStream.php 1 location
|
@@ 134-142 (lines=9) @@
|
131 |
|
* |
132 |
|
* @param Swift_OutputByteStream $os |
133 |
|
*/ |
134 |
|
public function importByteStream(Swift_OutputByteStream $os) |
135 |
|
{ |
136 |
|
$this->flushContents(); |
137 |
|
$blocks = 512; |
138 |
|
$os->setReadPointer(0); |
139 |
|
while (false !== ($read = $os->read($blocks))) { |
140 |
|
$this->write($read); |
141 |
|
} |
142 |
|
} |
143 |
|
|
144 |
|
/** |
145 |
|
* @see Swift_CharacterStream::importString() |
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 |