Changeset View
Changeset View
Standalone View
Standalone View
src/script/bitcoinconsensus.cpp
Show All 35 Lines | void read(char *pch, size_t nSize) { | ||||
": bad source buffer"); | ": bad source buffer"); | ||||
} | } | ||||
memcpy(pch, m_data, nSize); | memcpy(pch, m_data, nSize); | ||||
m_remaining -= nSize; | m_remaining -= nSize; | ||||
m_data += nSize; | m_data += nSize; | ||||
} | } | ||||
template <typename T> TxInputStream &operator>>(T &obj) { | template <typename T> TxInputStream &operator>>(T &&obj) { | ||||
::Unserialize(*this, obj); | ::Unserialize(*this, obj); | ||||
return *this; | return *this; | ||||
} | } | ||||
int GetVersion() const { return m_version; } | int GetVersion() const { return m_version; } | ||||
int GetType() const { return m_type; } | int GetType() const { return m_type; } | ||||
private: | private: | ||||
▲ Show 20 Lines • Show All 87 Lines • Show Last 20 Lines |