Changeset View
Changeset View
Standalone View
Standalone View
src/uint256.cpp
// Copyright (c) 2009-2010 Satoshi Nakamoto | // Copyright (c) 2009-2010 Satoshi Nakamoto | ||||
// Copyright (c) 2009-2016 The Bitcoin Core developers | // Copyright (c) 2009-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include "uint256.h" | #include <uint256.h> | ||||
#include "utilstrencodings.h" | #include <utilstrencodings.h> | ||||
#include <cstdio> | #include <cstdio> | ||||
#include <cstring> | #include <cstring> | ||||
template <unsigned int BITS> | template <unsigned int BITS> | ||||
base_blob<BITS>::base_blob(const std::vector<uint8_t> &vch) { | base_blob<BITS>::base_blob(const std::vector<uint8_t> &vch) { | ||||
assert(vch.size() == sizeof(data)); | assert(vch.size() == sizeof(data)); | ||||
memcpy(data, &vch[0], sizeof(data)); | memcpy(data, &vch[0], sizeof(data)); | ||||
▲ Show 20 Lines • Show All 56 Lines • Show Last 20 Lines |