Index: include/core/SkPath.h |
diff --git a/include/core/SkPath.h b/include/core/SkPath.h |
index a6674d9afb4e65cc024ee8a155d5f4f4b4869bfe..7cbfb4e95e8e62701fd9c51906f2ff4dc7097fab 100644 |
--- a/include/core/SkPath.h |
+++ b/include/core/SkPath.h |
@@ -910,15 +910,18 @@ public: |
void dump() const; |
/** |
- * Write the region to the buffer, and return the number of bytes written. |
+ * Write the path to the buffer, and return the number of bytes written. |
* If buffer is NULL, it still returns the number of bytes. |
*/ |
- uint32_t writeToMemory(void* buffer) const; |
+ size_t writeToMemory(void* buffer) const; |
/** |
- * Initialized the region from the buffer, returning the number |
- * of bytes actually read. |
+ * Initializes the path from the buffer |
+ * |
+ * @param buffer Memory to read from |
+ * @param length Amount of memory available in the buffer |
+ * @return number of bytes read or 0 if there was not enough memory available |
*/ |
- uint32_t readFromMemory(const void* buffer); |
+ size_t readFromMemory(const void* buffer, size_t length); |
#ifdef SK_BUILD_FOR_ANDROID |
uint32_t getGenerationID() const; |