diff options
-rw-r--r-- | src/fs/Path.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/fs/Path.hxx b/src/fs/Path.hxx index faeb669b7..9bbedeeab 100644 --- a/src/fs/Path.hxx +++ b/src/fs/Path.hxx @@ -200,6 +200,15 @@ public: } /** + * Returns a pointer to the raw value, not necessarily + * null-terminated. + */ + gcc_pure + const_pointer data() const { + return value.data(); + } + + /** * Convert the path to UTF-8. * Returns empty string on error or if this instance is "nulled" * (#IsNull returns true). |