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

Method GetTinyValue

storage/connect/value.cpp:1273–1279  ·  view source on GitHub ↗

/ Get the tiny value represented by the Strp string. */ /

Source from the content-addressed store, hash-verified

1271/* Get the tiny value represented by the Strp string. */
1272/***********************************************************************/
1273char TYPVAL<PSZ>::GetTinyValue(void)
1274{
1275 bool m;
1276 ulonglong val = CharToNumber(Strp, strlen(Strp), INT_MAX8, false, &m);
1277
1278 return (m && val < INT_MAX8) ? (char)(-(signed)val) : (char)val;
1279} // end of GetTinyValue
1280
1281/***********************************************************************/
1282/* Get the unsigned tiny value represented by the Strp string. */

Callers 6

WriteColumnMethod · 0.45
AllocateValueFunction · 0.45
GetTypedValueMethod · 0.45
SetValueMethod · 0.45
RephraseMethod · 0.45
SetValueMethod · 0.45

Calls 1

CharToNumberFunction · 0.85

Tested by

no test coverage detected