Add const versions of base_uint.end()/begin(), make size() const.

This commit is contained in:
Matt Corallo 2012-08-13 05:26:25 +02:00
parent 5f04881618
commit 68feac96b6

View file

@ -344,7 +344,17 @@ public:
return (unsigned char*)&pn[WIDTH];
}
unsigned int size()
const unsigned char* begin() const
{
return (unsigned char*)&pn[0];
}
const unsigned char* end() const
{
return (unsigned char*)&pn[WIDTH];
}
unsigned int size() const
{
return sizeof(pn);
}