Index: include/core/SkStream.h |
diff --git a/include/core/SkStream.h b/include/core/SkStream.h |
index 516b036a55e67162227374bf94350eb028ad7327..51ced24e56cf8a6c083ff88f7435e2d132e24909 100644 |
--- a/include/core/SkStream.h |
+++ b/include/core/SkStream.h |
@@ -56,6 +56,13 @@ public: |
*/ |
virtual size_t read(void* buffer, size_t size) = 0; |
+ /** |
+ * Attempt to read size bytes into a SkData. If the read success, return the data, |
+ * else return NULL. Either way the stream's cursor may have been changed as a result |
+ * of calling read(). |
+ */ |
+ SkData* readIntoData(size_t size); |
bungeman-skia
2014/09/12 14:50:27
Eck, not another thing on SkStream...
It seems li
reed1
2014/09/12 18:55:17
Done.
|
+ |
/** Skip size number of bytes. |
* @return the actual number bytes that could be skipped. |
*/ |