MCPcopy Create free account
hub / github.com/MariaDB/server / GetFloatValue

Method GetFloatValue

storage/connect/value.cpp:1991–2000  ·  view source on GitHub ↗

/ Get the double value pointed by Binp. */ /

Source from the content-addressed store, hash-verified

1989/* Get the double value pointed by Binp. */
1990/***********************************************************************/
1991double BINVAL::GetFloatValue(void)
1992{
1993 if (Len >= 8)
1994 return *(double*)Binp;
1995 else if (Len >= 4)
1996 return (double)(*(float*)Binp);
1997 else
1998 return 0.0;
1999
2000} // end of GetFloatValue
2001
2002/***********************************************************************/
2003/* BINVAL SetValue: copy the value of another Value object. */

Callers 15

WriteColumnMethod · 0.45
AddValueMethod · 0.45
ReadColumnMethod · 0.45
WriteColumnMethod · 0.45
AllocateValueFunction · 0.45
GetTypedValueMethod · 0.45
ComputeMethod · 0.45
CompareValueMethod · 0.45
SetParamMethod · 0.45
SetValueMethod · 0.45
MakeObjectMethod · 0.45
AddValueMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected