aboutsummaryrefslogtreecommitdiffstats
path: root/src/fs/Path.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-14 21:57:43 +0200
committerMax Kellermann <max@duempel.org>2013-10-14 21:57:43 +0200
commitb915e433911b4597626c721a8ae4a6e9dae6ac5a (patch)
treec3d9662546ff5c6fa15a408f07a23d0aadec8d1b /src/fs/Path.hxx
parentc96b29570042eff627d5e956f5ce58630385d18f (diff)
downloadmpd-b915e433911b4597626c721a8ae4a6e9dae6ac5a.tar.gz
mpd-b915e433911b4597626c721a8ae4a6e9dae6ac5a.tar.xz
mpd-b915e433911b4597626c721a8ae4a6e9dae6ac5a.zip
fs/Path: add method data()
Diffstat (limited to 'src/fs/Path.hxx')
-rw-r--r--src/fs/Path.hxx9
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).