public stream_write ( string $data ) : integer | ||
$data | string | string to be stored into the underlying stream. |
리턴 | integer | the number of bytes that were successfully stored. |
public function stream_write($data)
{
if ($this->upload === null) {
return false;
}
$this->upload->addContent($data);
$result = StringHelper::byteLength($data);
$this->pointerOffset += $result;
return $result;
}