MCPcopy Create free account
hub / github.com/ThePhD/sol2 / read

Method read

examples/source/custom_reader.cpp:25–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23 }
24
25 bool read() {
26 std::cout << "custom read: read #" << ++read_count
27 << std::endl;
28 current_size = fread(buffer, 1, 2, f);
29 return current_size > 0 && ferror(f) == 0;
30 }
31
32 ~custom_reader() {
33 std::fclose(f);

Callers 6

custom_reader_functionFunction · 0.80
pushMethod · 0.80
call.hppFile · 0.80
callMethod · 0.80
get_revisionFunction · 0.80
get_versionFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected