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

Method readAll

Fleece/Support/slice_stream.cc:140–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138
139
140 __hot slice slice_istream::readAll(size_t nBytes) noexcept {
141 if (nBytes > size)
142 return nullslice;
143 slice result(buf, nBytes);
144 skip(nBytes);
145 return result;
146 }
147
148
149 __hot slice slice_istream::readAtMost(size_t nBytes) noexcept {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected