MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / read

Method read

src/streams.cpp:74–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74void AutoFile::read(std::span<std::byte> dst)
75{
76 if (detail_fread(dst) != dst.size()) {
77 throw std::ios_base::failure(feof() ? "AutoFile::read: end of file" : "AutoFile::read: fread failed");
78 }
79}
80
81void AutoFile::ignore(size_t nSize)
82{

Callers 15

executeMethod · 0.45
read_xor_keyFunction · 0.45
read_xoredMethod · 0.45
process_fileFunction · 0.45
tree_sha512sumFunction · 0.45
load_fileFunction · 0.45
verify_with_gpgFunction · 0.45
files_are_equalFunction · 0.45
verify_binary_hashesFunction · 0.45
mainFunction · 0.45
read_varintFunction · 0.45
read_compactsizeFunction · 0.45

Calls 1

sizeMethod · 0.45

Tested by 13

test_oneMethod · 0.36
test_rest_requestMethod · 0.36
get_nextMethod · 0.36
is_node_stoppedMethod · 0.36
replace_in_configMethod · 0.36
read_xor_keyMethod · 0.36
assert_debug_logMethod · 0.36