diff options
author | epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-03-20 15:56:03 +0000 |
---|---|---|
committer | epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-03-20 15:56:03 +0000 |
commit | 8e3fb2d6f416eaa882d1e17421f38a3c55e2d3ff (patch) | |
tree | 7476f7ba8a357ecc71ffb426fc5e082cf782c6f1 /include/core | |
parent | a4ecab08b67c7c9c3453c2dd3baf5cf852a7e9af (diff) |
comments only: update docs for SkStream::readData(), SkWStream::writeData()
BUG=https://code.google.com/p/skia/issues/detail?id=1167
Review URL: https://codereview.chromium.org/12604012
git-svn-id: http://skia.googlecode.com/svn/trunk@8260 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkStream.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/include/core/SkStream.h b/include/core/SkStream.h index c9418709a1..30855b35f4 100644 --- a/include/core/SkStream.h +++ b/include/core/SkStream.h @@ -73,8 +73,8 @@ public: size_t readPackedUInt(); /** - * Create a new SkData from the stream contents. This balances the call - * SkWStream::writeData(). + * Reconstitute an SkData object that was written to the stream + * using SkWStream::writeData(). */ SkData* readData(); @@ -115,6 +115,14 @@ public: bool writeStream(SkStream* input, size_t length); + /** + * Append an SkData object to the stream, such that it can be read + * out of the stream using SkStream::readData(). + * + * Note that the encoding method used to write the SkData object + * to the stream may change over time. This method DOES NOT + * just write the raw content of the SkData object to the stream. + */ bool writeData(const SkData*); }; |