summaryrefslogtreecommitdiffstats
path: root/drm/libdrmframework/include/ReadWriteUtils.h
diff options
context:
space:
mode:
Diffstat (limited to 'drm/libdrmframework/include/ReadWriteUtils.h')
-rw-r--r--drm/libdrmframework/include/ReadWriteUtils.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drm/libdrmframework/include/ReadWriteUtils.h b/drm/libdrmframework/include/ReadWriteUtils.h
index 022149e..529b342 100644
--- a/drm/libdrmframework/include/ReadWriteUtils.h
+++ b/drm/libdrmframework/include/ReadWriteUtils.h
@@ -47,6 +47,14 @@ public:
*/
static String8 readBytes(const String8& filePath);
/**
+ * Reads the data into the given buffer from the file path provided
+ *
+ * @param[in] filePath Path of the file
+ * @param[out] buffer Data read from the file
+ * @return Length of the data read from the file
+ */
+ static int readBytes(const String8& filePath, char** buffer);
+ /**
* Writes the data into the file path provided
*
* @param[in] filePath Path of the file