remmoved inline in NdbRecAttr methods including memcpy

This commit is contained in:
tomas@poseidon.ndb.mysql.com 2005-01-24 10:33:39 +01:00
parent e38381f241
commit 241a18585b
2 changed files with 32 additions and 36 deletions

View file

@ -300,15 +300,6 @@ NdbRecAttr::arraySize() const
return theArraySize;
}
inline
Int64
NdbRecAttr::int64_value() const
{
Int64 val;
memcpy(&val,theRef,8);
return val;
}
inline
Int32
NdbRecAttr::int32_value() const
@ -330,15 +321,6 @@ NdbRecAttr::char_value() const
return *(char*)theRef;
}
inline
Uint64
NdbRecAttr::u_64_value() const
{
Uint64 val;
memcpy(&val,theRef,8);
return val;
}
inline
Uint32
NdbRecAttr::u_32_value() const
@ -360,24 +342,6 @@ NdbRecAttr::u_char_value() const
return *(Uint8*)theRef;
}
inline
float
NdbRecAttr::float_value() const
{
float val;
memcpy(&val,theRef,sizeof(val));
return val;
}
inline
double
NdbRecAttr::double_value() const
{
double val;
memcpy(&val,theRef,sizeof(val));
return val;
}
inline
void
NdbRecAttr::release()

View file

@ -245,3 +245,35 @@ NdbOut& operator<<(NdbOut& out, const NdbRecAttr &r)
return out;
}
Int64
NdbRecAttr::int64_value() const
{
Int64 val;
memcpy(&val,theRef,8);
return val;
}
Uint64
NdbRecAttr::u_64_value() const
{
Uint64 val;
memcpy(&val,theRef,8);
return val;
}
float
NdbRecAttr::float_value() const
{
float val;
memcpy(&val,theRef,sizeof(val));
return val;
}
double
NdbRecAttr::double_value() const
{
double val;
memcpy(&val,theRef,sizeof(val));
return val;
}