mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +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
82c17da263
commit
09745e3dc8
1 changed files with 3 additions and 1 deletions
|
@ -71,7 +71,9 @@
|
||||||
|
|
||||||
- (void) writeLine: (id <String>)l
|
- (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
|
- (id <String>) readLine
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue