|
@@ -314,12 +314,12 @@ Class Stream
|
|
Return str
|
|
Return str
|
|
End
|
|
End
|
|
|
|
|
|
- #rem monkeydoc Reads a null terminated string from the stream.
|
|
|
|
|
|
+ #rem monkeydoc Reads a null terminated cstring from the stream.
|
|
|
|
|
|
@return the string read.
|
|
@return the string read.
|
|
|
|
|
|
#end
|
|
#end
|
|
- Method ReadNullTerminatedString:String()
|
|
|
|
|
|
+ Method ReadCString:String()
|
|
Local buf:=New Stack<Byte>
|
|
Local buf:=New Stack<Byte>
|
|
While Not Eof
|
|
While Not Eof
|
|
Local chr:=ReadByte()
|
|
Local chr:=ReadByte()
|
|
@@ -451,12 +451,12 @@ Class Stream
|
|
WriteString( str )
|
|
WriteString( str )
|
|
End
|
|
End
|
|
|
|
|
|
- #rem monkeydoc Writes a null terminate string to the stream.
|
|
|
|
|
|
+ #rem monkeydoc Writes a null terminated cstring to the stream.
|
|
|
|
|
|
@param str The string to write.
|
|
@param str The string to write.
|
|
|
|
|
|
#end
|
|
#end
|
|
- Method WriteNullTerminatedString( str:String )
|
|
|
|
|
|
+ Method WriteCString( str:String )
|
|
WriteString( str )
|
|
WriteString( str )
|
|
WriteByte( 0 )
|
|
WriteByte( 0 )
|
|
End
|
|
End
|