Index: include/core/SkRRect.h |
diff --git a/include/core/SkRRect.h b/include/core/SkRRect.h |
index 402e6c6c4b276ef0ad92850495b08bd2fcccec5b..e41148dea4fda18e002f8355ac3ba892df5cda28 100644 |
--- a/include/core/SkRRect.h |
+++ b/include/core/SkRRect.h |
@@ -244,14 +244,19 @@ public: |
* write kSizeInMemory bytes, and that value is guaranteed to always be |
* a multiple of 4. Return kSizeInMemory. |
*/ |
- uint32_t writeToMemory(void* buffer) const; |
+ size_t writeToMemory(void* buffer) const; |
/** |
- * Read the rrect from the specified buffer. This is guaranteed to always |
- * read kSizeInMemory bytes, and that value is guaranteed to always be |
- * a multiple of 4. Return kSizeInMemory. |
+ * Reads the rrect from the specified buffer |
+ * |
+ * If the specified buffer is large enough, this will read kSizeInMemory bytes, |
+ * and that value is guaranteed to always be a multiple of 4. |
+ * |
+ * @param buffer Memory to read from |
+ * @param length Amount of memory available in the buffer |
+ * @return kSizeInMemory or 0 if there was not enough memory available |
*/ |
- uint32_t readFromMemory(const void* buffer); |
+ size_t readFromMemory(const void* buffer, size_t length); |
private: |
SkRect fRect; |