chore: use std::vector<std::byte> for BlockManager::ReadRawBlock()
This commit is contained in:
12 files changed
+20
-19
No files matched your search
+3
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user