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

Method readAtMost

Fleece/Support/slice_stream.cc:149–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147
148
149 __hot slice slice_istream::readAtMost(size_t nBytes) noexcept {
150 nBytes = std::min(nBytes, size);
151 slice result(buf, nBytes);
152 skip(nBytes);
153 return result;
154 }
155
156
157 __hot bool slice_istream::readAll(void *dstBuf, size_t dstSize) noexcept {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected