MCPcopy Create free account
hub / github.com/danielaparker/jsoncons / read_buffer

Method read_buffer

include/jsoncons/source.hpp:327–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325 }
326
327 span<const value_type> read_buffer()
328 {
329 if (length_ == 0)
330 {
331 fill_buffer();
332 }
333 const value_type* data = data_;
334 std::size_t length = length_;
335 data_ += length_;
336 position_ += length_;
337 length_ = 0;
338
339 return span<const value_type>(data, length);
340 }
341
342 std::size_t read(value_type* p, std::size_t length)
343 {

Callers

nothing calls this directly

Calls 1

fill_bufferFunction · 0.85

Tested by

no test coverage detected