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

Method read

include/jsoncons/source.hpp:715–729  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

713 }
714
715 std::size_t read(value_type* p, std::size_t length)
716 {
717 std::size_t len;
718 if (std::size_t(end_ - current_) < length)
719 {
720 len = end_ - current_;
721 }
722 else
723 {
724 len = length;
725 }
726 std::memcpy(p, current_, len*sizeof(value_type));
727 current_ += len;
728 return len;
729 }
730 };
731
732 // binary_iterator source

Callers 15

LLVMFuzzerTestOneInputFunction · 0.45
LLVMFuzzerTestOneInputFunction · 0.45
LLVMFuzzerTestOneInputFunction · 0.45
LLVMFuzzerTestOneInputFunction · 0.45
LLVMFuzzerTestOneInputFunction · 0.45
LLVMFuzzerTestOneInputFunction · 0.45
LLVMFuzzerTestOneInputFunction · 0.45
LLVMFuzzerTestOneInputFunction · 0.45
LLVMFuzzerTestOneInputFunction · 0.45
LLVMFuzzerTestOneInputFunction · 0.45
LLVMFuzzerTestOneInputFunction · 0.45
LLVMFuzzerTestOneInputFunction · 0.45

Calls

no outgoing calls

Tested by 7

check_parse_cborFunction · 0.36
toon_decode_testsFunction · 0.36
read_jsonFunction · 0.36
test_json_reader_ecFunction · 0.36
test_parse_ecFunction · 0.36
update_in_placeFunction · 0.36
read_bytesFunction · 0.36