MCPcopy Create free account
hub / github.com/apache/impala / EncodeDouble

Function EncodeDouble

be/src/gutil/strings/serialize.h:272–274  ·  view source on GitHub ↗

---------------------------------------------------------------------- EncodeDouble() EncodeFloat() EncodeUint32() EncodeUint64() DecodeDouble() DecodeFloat() DecodeUint32() DecodeUint64() The Encode* functions store the bytes of ints, floats or doubles into the data bytes of a C++ string. The Decode* functions perform the reverse operations, but operate on a StringPiece rather than directly on a

Source from the content-addressed store, hash-verified

270// Note that these encodings are NOT endian-neutral.
271// ----------------------------------------------------------------------
272inline string EncodeDouble(double d) {
273 return EncodePOD(d);
274}
275
276inline string EncodeFloat(float f) {
277 return EncodePOD(f);

Callers

nothing calls this directly

Calls 1

EncodePODFunction · 0.85

Tested by

no test coverage detected