[ox] Rename CRStringView to StringViewCR
This commit is contained in:
4
deps/ox/src/ox/fs/filesystem/directory.hpp
vendored
4
deps/ox/src/ox/fs/filesystem/directory.hpp
vendored
@ -43,7 +43,7 @@ struct OX_PACKED DirectoryEntry {
|
||||
public:
|
||||
constexpr DirectoryEntry() noexcept = default;
|
||||
|
||||
Error init(InodeId_t inode, ox::CRStringView name, size_t bufferSize) noexcept {
|
||||
Error init(InodeId_t inode, ox::StringViewCR name, size_t bufferSize) noexcept {
|
||||
oxTracef("ox.fs.DirectoryEntry.init", "inode: {}, name: {}, bufferSize: {}", inode, name, bufferSize);
|
||||
m_bufferSize = static_cast<InodeId_t>(bufferSize);
|
||||
auto d = data();
|
||||
@ -284,7 +284,7 @@ Error Directory<FileStore, InodeId_t>::ls(F cb) noexcept {
|
||||
}
|
||||
|
||||
template<typename FileStore, typename InodeId_t>
|
||||
Result<typename FileStore::InodeId_t> Directory<FileStore, InodeId_t>::findEntry(CRStringView name) const noexcept {
|
||||
Result<typename FileStore::InodeId_t> Directory<FileStore, InodeId_t>::findEntry(StringViewCR name) const noexcept {
|
||||
oxTrace("ox.fs.Directory.findEntry", name);
|
||||
auto buff = m_fs.read(m_inodeId).template to<Buffer>();
|
||||
if (!buff.valid()) {
|
||||
|
Reference in New Issue
Block a user