Add 'zero' method to zero a uint.

This commit is contained in:
JoelKatz
2011-12-18 01:24:08 -08:00
parent 170eb9c4b0
commit 0421268daa

View File

@@ -374,6 +374,10 @@ public:
return sizeof(pn);
}
void zero(void)
{
memset(&pn[0], 0, sizeof(pn));
}
unsigned int GetSerializeSize(int nType=0) const
{