Differences From Artifact [c69f9cbafe]:
- File
src/OFStream.m
— part of check-in
[295193f0b9]
at
2011-09-16 12:40:23
on branch trunk
— Optimize -[readLine] and -[readTillDelimiter:] a little.
They should be as fast as they were before -[tryReadLine] etc. were
introduced now. (user: js, size: 27024) [annotate] [blame] [check-ins using]
To Artifact [69277f1386]:
- File src/OFStream.m — part of check-in [d43eb177bc] at 2011-09-19 12:34:21 on branch trunk — BOOL naming conventions. (user: js, size: 27018) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
61 62 63 64 65 66 67 | selector: _cmd]; } self = [super init]; cache = NULL; writeBuffer = NULL; | | | 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | selector: _cmd]; } self = [super init]; cache = NULL; writeBuffer = NULL; blocking = YES; return self; } - (BOOL)_isAtEndOfStream { @throw [OFNotImplementedException newWithClass: isa |
︙ | ︙ | |||
1361 1362 1363 1364 1365 1366 1367 | - (size_t)pendingBytes { return cacheLength; } - (BOOL)isBlocking { | | | | 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 | - (size_t)pendingBytes { return cacheLength; } - (BOOL)isBlocking { return blocking; } - (void)setBlocking: (BOOL)enable { #ifndef _WIN32 int flags; blocking = enable; if ((flags = fcntl([self fileDescriptor], F_GETFL)) == -1) @throw [OFSetOptionFailedException newWithClass: isa stream: self]; if (enable) flags &= ~O_NONBLOCK; |
︙ | ︙ |