MCPcopy Create free account
hub / github.com/Tencent/UnLua / pb_decode_float

Function pb_decode_float

Plugins/UnLuaExtensions/LuaProtobuf/Source/src/pb.h:395–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393{ union { uint32_t u32; float f; } u; u.f = value; return u.u32; }
394
395PB_API float pb_decode_float(uint32_t value)
396{ union { uint32_t u32; float f; } u; u.u32 = value; return u.f; }
397
398PB_API uint64_t pb_encode_double(double value)
399{ union { uint64_t u64; double d; } u; u.d = value; return u.u64; }

Callers 2

lpb_readtypeFunction · 0.85
Lconv_decode_floatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected