MCPcopy Create free account
hub / github.com/AGWA/git-crypt / read_be32

Function read_be32

util.cpp:93–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93bool read_be32 (std::istream& in, uint32_t& i)
94{
95 unsigned char buffer[4];
96 in.read(reinterpret_cast<char*>(buffer), 4);
97 if (in.gcount() != 4) {
98 return false;
99 }
100 i = load_be32(buffer);
101 return true;
102}
103
104void write_be32 (std::ostream& out, uint32_t i)
105{

Callers 2

loadMethod · 0.85
load_headerMethod · 0.85

Calls 1

load_be32Function · 0.85

Tested by

no test coverage detected