diff options
author | TheCharlatan <seb.kung@gmail.com> | 2023-08-03 16:07:59 +0200 |
---|---|---|
committer | TheCharlatan <seb.kung@gmail.com> | 2023-08-05 10:45:19 +0200 |
commit | d8f1222ac50f089a0af29eaf8ce0555bad8366ef (patch) | |
tree | a1658f75bd4d7ffc6655e15ce99767a592fd04d4 /src/dbwrapper.h | |
parent | be8f159ac59b9e700cbd3314ed71ebf39bd5b67a (diff) |
refactor: Correct dbwrapper key naming
The ss- prefix should connotate a DataStream variable. Now that these
variables are byte spans, drop the prefix.
Diffstat (limited to 'src/dbwrapper.h')
-rw-r--r-- | src/dbwrapper.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/dbwrapper.h b/src/dbwrapper.h index 66170b5efa..eac9594aa1 100644 --- a/src/dbwrapper.h +++ b/src/dbwrapper.h @@ -85,8 +85,8 @@ private: size_t size_estimate{0}; - void WriteImpl(Span<const std::byte> ssKey, CDataStream& ssValue); - void EraseImpl(Span<const std::byte> ssKey); + void WriteImpl(Span<const std::byte> key, CDataStream& ssValue); + void EraseImpl(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> ssKey); + void SeekImpl(Span<const std::byte> key); Span<const std::byte> GetKeyImpl() const; 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> ssKey) const; - bool ExistsImpl(Span<const std::byte> ssKey) const; - size_t EstimateSizeImpl(Span<const std::byte> ssKey1, Span<const std::byte> ssKey2) const; + 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; auto& DBContext() const LIFETIMEBOUND { return *Assert(m_db_context); } public: |