Browse Source

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

0.8
Matt Corallo 12 years ago
parent
commit
68feac96b6
  1. 12
      src/uint256.h

12
src/uint256.h

@ -344,7 +344,17 @@ public: @@ -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);
}

Loading…
Cancel
Save