MCPcopy Create free account
hub / github.com/assaultcube/AC / getfloat

Function getfloat

source/src/protocol.cpp:116–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114void putfloat(vector<uchar> &p, float f) { putfloat_(p, f); }
115
116float getfloat(ucharbuf &p)
117{
118 float f;
119 p.get((uchar *)&f, sizeof(float));
120 return lilswap(f);
121}
122
123template<class T>
124static inline void sendstring_(const char *text, T &p)

Callers

nothing calls this directly

Calls 2

lilswapFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected