getFileSize overloads
Declared in <bdls_filesystemutil.h>
Return the size, in bytes, of the file or directory specified by the specified open descriptor, or a negative value if an error occurs. Note that the size of a symbolic link is the size of the file or directory to which it points.
static
Offset
getFileSize(FileDescriptor descriptor);
» more...
Return the size, in bytes, of the file or directory at the specified path, or a negative value if an error occurs. Note that the size of a symbolic link is the size of the file or directory to which it points. The parameterized STRING_TYPE must be one of bsl::string, std::string, std::pmr::string (if supported), bsl::string_view, or bslstl::StringRef.
static
Offset
getFileSize(char const* path);
» more...
Same as the overload taking const char *.
template<class STRING_TYPE>
static
FilesystemUtil::Offset
getFileSize(STRING_TYPE const& path);
» more...