aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkStream.h
diff options
context:
space:
mode:
authorGravatar epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-20 15:56:03 +0000
committerGravatar epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-20 15:56:03 +0000
commit8e3fb2d6f416eaa882d1e17421f38a3c55e2d3ff (patch)
tree7476f7ba8a357ecc71ffb426fc5e082cf782c6f1 /include/core/SkStream.h
parenta4ecab08b67c7c9c3453c2dd3baf5cf852a7e9af (diff)
comments only: update docs for SkStream::readData(), SkWStream::writeData()
Diffstat (limited to 'include/core/SkStream.h')
-rw-r--r--include/core/SkStream.h12
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*);
};