diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-07-02 19:35:13 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-07-02 19:35:13 +0000 |
commit | 2e07942f42937b87f82a16e11b1bb26acd09896e (patch) | |
tree | c60b3a18ce3225bdc538533a114fe1137652bb16 /include/core | |
parent | b3c0f4886e22b6d2041c1049a1f295943959fff1 (diff) |
add read/write SkData methods
git-svn-id: http://skia.googlecode.com/svn/trunk@4427 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkStream.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/core/SkStream.h b/include/core/SkStream.h index 5a7dd96a3a..d42bd5658a 100644 --- a/include/core/SkStream.h +++ b/include/core/SkStream.h @@ -65,6 +65,12 @@ public: SkScalar readScalar(); size_t readPackedUInt(); + /** + * Create a new SkData from the stream contents. This balances the call + * SkWStream::writeData(). + */ + SkData* readData(); + private: typedef SkRefCnt INHERITED; }; |