MCPcopy Create free account
hub / github.com/couchbase/fleece / readToDelimiter

Method readToDelimiter

Fleece/Support/slice_stream.cc:173–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 1

endMethod · 0.45

Tested by

no test coverage detected