mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
([Stream -writeLine:]): Replace with more efficient implementation
from MemoryStream class. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@767 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
bc2618d1fa
commit
01f58cf984
1 changed files with 3 additions and 1 deletions
|
@ -71,7 +71,9 @@
|
|||
|
||||
- (void) writeLine: (id <String>)l
|
||||
{
|
||||
[self writeFormat:"%s\n", l];
|
||||
const char *s = [l cStringNoCopy];
|
||||
[self writeBytes:s length:strlen(s)];
|
||||
[self writeBytes:"\n" length:1];
|
||||
}
|
||||
|
||||
- (id <String>) readLine
|
||||
|
|
Loading…
Reference in a new issue