aboutsummaryrefslogtreecommitdiff
path: root/src/uint256.h
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2013-01-17 10:04:08 -0800
committerGavin Andresen <gavinandresen@gmail.com>2013-01-17 10:04:08 -0800
commit91f70a75daa7ffb89bbec23ca54e5f2c3fa1a83e (patch)
treed710cfa159d9077e6272b83491a126fb56ff3958 /src/uint256.h
parenta1f4909e0bc9cfb27df314b84a8624685549e6fe (diff)
parentc51694eb9b9db915beb1da8d76667d94f4f74c75 (diff)
downloadbitcoin-91f70a75daa7ffb89bbec23ca54e5f2c3fa1a83e.tar.xz
Merge pull request #1795 from TheBlueMatt/bloom
Bloom filters
Diffstat (limited to 'src/uint256.h')
-rw-r--r--src/uint256.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/uint256.h b/src/uint256.h
index abd0b71e6f..eb0066fa27 100644
--- a/src/uint256.h
+++ b/src/uint256.h
@@ -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);
}