mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-03 17:54:19 +02:00
scripted-diff: Use std::span over Span
-BEGIN VERIFY SCRIPT-
ren() { sed -i "s!\<$1\>!$2!g" $( git grep -l "$1" -- "./src" ":(exclude)src/span.h" ":(exclude)src/leveldb/db/log_test.cc" ) ; }
ren Span std::span
ren AsBytes std::as_bytes
ren AsWritableBytes std::as_writable_bytes
sed -i 's!SpanPopBack(Span!SpanPopBack(std::span!g' ./src/span.h
-END VERIFY SCRIPT-
This commit is contained in:
@@ -85,8 +85,8 @@ private:
|
||||
|
||||
size_t size_estimate{0};
|
||||
|
||||
void WriteImpl(Span<const std::byte> key, DataStream& ssValue);
|
||||
void EraseImpl(Span<const std::byte> key);
|
||||
void WriteImpl(std::span<const std::byte> key, DataStream& ssValue);
|
||||
void EraseImpl(std::span<const std::byte> key);
|
||||
|
||||
public:
|
||||
/**
|
||||
@@ -129,7 +129,7 @@ private:
|
||||
const CDBWrapper &parent;
|
||||
const std::unique_ptr<IteratorImpl> m_impl_iter;
|
||||
|
||||
void SeekImpl(Span<const std::byte> key);
|
||||
void SeekImpl(std::span<const std::byte> key);
|
||||
std::span<const std::byte> GetKeyImpl() const;
|
||||
std::span<const std::byte> GetValueImpl() const;
|
||||
|
||||
@@ -206,9 +206,9 @@ private:
|
||||
//! whether or not the database resides in memory
|
||||
bool m_is_memory;
|
||||
|
||||
std::optional<std::string> ReadImpl(Span<const std::byte> key) const;
|
||||
bool ExistsImpl(Span<const std::byte> key) const;
|
||||
size_t EstimateSizeImpl(Span<const std::byte> key1, Span<const std::byte> key2) const;
|
||||
std::optional<std::string> ReadImpl(std::span<const std::byte> key) const;
|
||||
bool ExistsImpl(std::span<const std::byte> key) const;
|
||||
size_t EstimateSizeImpl(std::span<const std::byte> key1, std::span<const std::byte> key2) const;
|
||||
auto& DBContext() const LIFETIMEBOUND { return *Assert(m_db_context); }
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user