| 171 | |
| 172 | |
| 173 | __hot slice slice_istream::readToDelimiter(slice delim) noexcept { |
| 174 | slice found = find(delim); |
| 175 | if (!found) |
| 176 | return nullslice; |
| 177 | slice result(buf, found.buf); |
| 178 | setStart(found.end()); |
| 179 | return result; |
| 180 | } |
| 181 | |
| 182 | |
| 183 | __hot slice slice_istream::readToDelimiterOrEnd(slice delim) noexcept { |