MCPcopy Create free account
hub / github.com/bytedance/bolt / readNumber

Function readNumber

bolt/common/caching/SsdFile.cpp:836–840  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

834T readNumber(std::ifstream& stream) {
835 T data;
836 stream.read(asChar(&data), sizeof(T));
837 return data;
838}
839} // namespace
840
841void SsdFile::readCheckpoint(std::ifstream& state) {
842 char magic[4];
843 state.read(magic, sizeof(magic));

Callers

nothing calls this directly

Calls 2

asCharFunction · 0.85
readMethod · 0.45

Tested by

no test coverage detected