diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-09-26 13:36:07 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-09-26 13:36:07 +1000 |
| commit | 4d99d22e10a3cb2a421da1618c127128816613c9 (patch) | |
| tree | 527490a466348e5cf40cf10a8f3768aa5be4e7c1 /src/database/include/records.hpp | |
| parent | f6d06421090f88094aba76b72b04d614f54efafa (diff) | |
| download | tangara-fw-4d99d22e10a3cb2a421da1618c127128816613c9.tar.gz | |
std::string -> std::pmr::string in psram
Diffstat (limited to 'src/database/include/records.hpp')
| -rw-r--r-- | src/database/include/records.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/database/include/records.hpp b/src/database/include/records.hpp index 58f29b20..b144dece 100644 --- a/src/database/include/records.hpp +++ b/src/database/include/records.hpp @@ -16,7 +16,7 @@ #include "leveldb/slice.h" #include "index.hpp" -#include "shared_string.h" +#include "memory_resource.hpp" #include "track.hpp" namespace database { @@ -28,10 +28,10 @@ namespace database { */ class OwningSlice { public: - std::string data; + std::pmr::string data; leveldb::Slice slice; - explicit OwningSlice(std::string d); + explicit OwningSlice(std::pmr::string d); }; /* @@ -88,6 +88,6 @@ auto TrackIdToBytes(TrackId id) -> OwningSlice; * Converts a track id encoded via TrackIdToBytes back into a TrackId. May * return nullopt if parsing fails. */ -auto BytesToTrackId(const std::string& bytes) -> std::optional<TrackId>; +auto BytesToTrackId(cpp::span<const char> bytes) -> std::optional<TrackId>; } // namespace database |
