chore: use std::vector<std::byte> for BlockManager::ReadRawBlock()

This commit is contained in:
Roman Zeyde committed 2025-06-13 19:19:44 +03:00
1 parent 19765dca19
commit 6ecb9fc65f
12 files changed
+20 -19

No files matched your search

+3 -2
View File
@@ -100,13 +100,14 @@ private:
class SpanReader
{
private:
std::span<const unsigned char> m_data;
std::span<const std::byte> m_data;
public:
/**
* @param[in] data Referenced byte vector to overwrite/append
*/
explicit SpanReader(std::span<const unsigned char> data) : m_data{data} {}
explicit SpanReader(std::span<const unsigned char> data) : m_data{std::as_bytes(data)} {}
explicit SpanReader(std::span<const std::byte> data) : m_data{data} {}
template<typename T>
SpanReader& operator>>(T&& obj)