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

Function pb_encode_double

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

Source from the content-addressed store, hash-verified

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; }
400
401PB_API double pb_decode_double(uint64_t value)
402{ union { uint64_t u64; double d; } u; u.u64 = value; return u.d; }

Callers 2

lpb_addtypeFunction · 0.85
Lconv_encode_doubleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected