aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkReader32.h
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-05-23 12:21:05 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-05-23 12:21:05 +0000
commitdde0956375e87027df2fdd80d430dd819c217aac (patch)
treed44bf1f374734fe72de229b3f12a1464f0ae2cac /include/core/SkReader32.h
parentc7d9f9d8ae3283accf17e77e70fc64cfbfd8121a (diff)
add cross-process option to gpipe
add unittests for reader32 and writer32 git-svn-id: http://skia.googlecode.com/svn/trunk@1397 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkReader32.h')
-rw-r--r--include/core/SkReader32.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/core/SkReader32.h b/include/core/SkReader32.h
index 03a34c7ca6..654ebd5f19 100644
--- a/include/core/SkReader32.h
+++ b/include/core/SkReader32.h
@@ -101,7 +101,14 @@ public:
uint16_t readU16() { return (uint16_t)this->readInt(); }
int32_t readS32() { return this->readInt(); }
uint32_t readU32() { return this->readInt(); }
-
+
+ /**
+ * Read the length of a string written by SkWriter32::writeString()
+ * (if len is not NULL) and return the null-ternimated address of the
+ * string.
+ */
+ const char* readString(size_t* len = NULL);
+
private:
// these are always 4-byte aligned
const char* fCurr; // current position within buffer