MCPcopy Create free account
hub / github.com/MultiMC/Launcher / read_be

Method read_be

libraries/classparser/src/membuffer.h:35–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 * valid for 2-byte, 4-byte and 8-byte variables
34 */
35 template <class T> void read_be(T &val)
36 {
37 val = util::bigswap(*(T *)current);
38 current += sizeof(T);
39 }
40 /**
41 * Read a string in the format:
42 * 2B length (big endian, unsigned)

Callers 4

constantMethod · 0.80
loadMethod · 0.80
readMethod · 0.80
readElementValueMethod · 0.80

Calls 1

bigswapFunction · 0.85

Tested by

no test coverage detected