diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2013-01-17 10:04:08 -0800 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2013-01-17 10:04:08 -0800 |
commit | 91f70a75daa7ffb89bbec23ca54e5f2c3fa1a83e (patch) | |
tree | d710cfa159d9077e6272b83491a126fb56ff3958 /src/uint256.h | |
parent | a1f4909e0bc9cfb27df314b84a8624685549e6fe (diff) | |
parent | c51694eb9b9db915beb1da8d76667d94f4f74c75 (diff) | |
download | bitcoin-91f70a75daa7ffb89bbec23ca54e5f2c3fa1a83e.tar.xz |
Merge pull request #1795 from TheBlueMatt/bloom
Bloom filters
Diffstat (limited to 'src/uint256.h')
-rw-r--r-- | src/uint256.h | 12 |
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); } |