style: use constant naming
This commit is contained in:
@@ -93,14 +93,14 @@ bool VirtualFileSystem::exists(const std::string& path) const
|
|||||||
return mount ? mount->provider->exists(relativePath) : false;
|
return mount ? mount->provider->exists(relativePath) : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
VFSResult VirtualFileSystem::readFile(const std::string& path, FileBuffer& out_buffer) const
|
VFSResult VirtualFileSystem::readFile(const std::string& path, FileBuffer& outBuffer) const
|
||||||
{
|
{
|
||||||
std::shared_lock lock(_mutex);
|
std::shared_lock lock(_mutex);
|
||||||
std::string relativePath;
|
std::string relativePath;
|
||||||
const MountPoint* mount = findBestMount(path, relativePath);
|
const MountPoint* mount = findBestMount(path, relativePath);
|
||||||
|
|
||||||
if (!mount) return VFSResult::FileNotFound;
|
if (!mount) return VFSResult::FileNotFound;
|
||||||
return mount->provider->readFile(relativePath, out_buffer);
|
return mount->provider->readFile(relativePath, outBuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
VFSResult VirtualFileSystem::writeFile(const std::string& path, const FileBuffer& buffer)
|
VFSResult VirtualFileSystem::writeFile(const std::string& path, const FileBuffer& buffer)
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ namespace seallib
|
|||||||
|
|
||||||
virtual bool exists(const std::string& path) const = 0;
|
virtual bool exists(const std::string& path) const = 0;
|
||||||
|
|
||||||
virtual VFSResult readFile(const std::string& path, FileBuffer& out_buffer) const = 0;
|
virtual VFSResult readFile(const std::string& path, FileBuffer& outBuffer) const = 0;
|
||||||
virtual VFSResult writeFile(const std::string& path, const FileBuffer& buffer) = 0;
|
virtual VFSResult writeFile(const std::string& path, const FileBuffer& buffer) = 0;
|
||||||
|
|
||||||
virtual VFSResult deleteFile(const std::string& path) = 0;
|
virtual VFSResult deleteFile(const std::string& path) = 0;
|
||||||
@@ -65,7 +65,7 @@ namespace seallib
|
|||||||
void unmountAll();
|
void unmountAll();
|
||||||
|
|
||||||
bool exists(const std::string& path) const;
|
bool exists(const std::string& path) const;
|
||||||
VFSResult readFile(const std::string& path, FileBuffer& out_buffer) const;
|
VFSResult readFile(const std::string& path, FileBuffer& outBuffer) const;
|
||||||
VFSResult writeFile(const std::string& path, const FileBuffer& buffer);
|
VFSResult writeFile(const std::string& path, const FileBuffer& buffer);
|
||||||
VFSResult deleteFile(const std::string& path);
|
VFSResult deleteFile(const std::string& path);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user