Differences From Artifact [be4eb53104]:
- File
src/OFStream.m
— part of check-in
[a61e0594b4]
at
2023-10-15 12:32:29
on branch trunk
— Add -[OFStream lowlevelIsAtEndOfStream]
This allows for a much cleaner solution to avoid the internal read
buffer of e.g. a TLS connection never being processed while waiting for
a delimiter. (user: js, size: 30080) [annotate] [blame] [check-ins using] [more...]
To Artifact [dad1270707]:
- File src/OFStream.m — part of check-in [58fea9d1b2] at 2023-12-28 01:21:06 on branch trunk — OFStream: Fix indentation (user: js, size: 30081) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
702 703 704 705 706 707 708 | if (j == delimiterLength || _readBuffer[i] == '\0') { if (_readBuffer[i] == '\0') delimiterLength = 1; ret = [OFString stringWithCString: _readBuffer encoding: encoding | | | 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 | if (j == delimiterLength || _readBuffer[i] == '\0') { if (_readBuffer[i] == '\0') delimiterLength = 1; ret = [OFString stringWithCString: _readBuffer encoding: encoding length: i + 1 - delimiterLength]; _readBuffer += i + 1; _readBufferLength -= i + 1; _waitingForDelimiter = false; return ret; } |
︙ | ︙ |