aboutsummaryrefslogtreecommitdiffstats
path: root/libdevcore/SwarmHash.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-08-29 20:07:24 +0800
committerGitHub <noreply@github.com>2017-08-29 20:07:24 +0800
commit2d39a42d37cd03e62d0295e8137f2c411b9b1b9f (patch)
tree40f0db81ff5be70cf999708b8094b1cd896cd66f /libdevcore/SwarmHash.cpp
parent21bc6fd3051e2a751767ebd7ac3acaa9ed8ba112 (diff)
parent7fb4a64136af18f2b61aef71ecc33ccbbc790ec6 (diff)
downloaddexon-solidity-2d39a42d37cd03e62d0295e8137f2c411b9b1b9f.tar
dexon-solidity-2d39a42d37cd03e62d0295e8137f2c411b9b1b9f.tar.gz
dexon-solidity-2d39a42d37cd03e62d0295e8137f2c411b9b1b9f.tar.bz2
dexon-solidity-2d39a42d37cd03e62d0295e8137f2c411b9b1b9f.tar.lz
dexon-solidity-2d39a42d37cd03e62d0295e8137f2c411b9b1b9f.tar.xz
dexon-solidity-2d39a42d37cd03e62d0295e8137f2c411b9b1b9f.tar.zst
dexon-solidity-2d39a42d37cd03e62d0295e8137f2c411b9b1b9f.zip
Merge pull request #2843 from ethereum/anonymous-cleanup
Move all file specific globals to anonymous namespace
Diffstat (limited to 'libdevcore/SwarmHash.cpp')
-rw-r--r--libdevcore/SwarmHash.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libdevcore/SwarmHash.cpp b/libdevcore/SwarmHash.cpp
index 78188668..1c718200 100644
--- a/libdevcore/SwarmHash.cpp
+++ b/libdevcore/SwarmHash.cpp
@@ -24,6 +24,8 @@
using namespace std;
using namespace dev;
+namespace
+{
bytes toLittleEndian(size_t _size)
{
@@ -59,6 +61,8 @@ h256 swarmHashIntermediate(string const& _input, size_t _offset, size_t _length)
return swarmHashSimple(ref, _length);
}
+}
+
h256 dev::swarmHash(string const& _input)
{
return swarmHashIntermediate(_input, 0, _input.size());