Changeset 460 for trunk/includes/MemoryStream.php
- Timestamp:
- Apr 13, 2010, 5:22:25 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/MemoryStream.php
r447 r460 58 58 } 59 59 60 public function Read String()60 public function ReadLine($EndSymbol = "\r") 61 61 { 62 62 $Length = 0; … … 65 65 { 66 66 $Char = $this->ReadChar(); 67 if($Char == "\0") break;67 if($Char == $EndSymbol) break; 68 68 } 69 69 $Result = substr($this->Data, $StartPosition, $this->Position - $StartPosition); … … 104 104 } 105 105 106 public function Write String($Value)106 public function WriteLine($Value) 107 107 { 108 $this->WriteBlock($Value."\ 0", strlen($Value) + 1);108 $this->WriteBlock($Value."\r\n", strlen($Value) + 2); 109 109 } 110 110
Note:
See TracChangeset
for help on using the changeset viewer.