diff options
author | 2013-08-15 21:01:32 +0000 | |
---|---|---|
committer | 2013-08-15 21:01:32 +0000 | |
commit | 0038c12f337b7037ef698e2723099c7e3b19c4ca (patch) | |
tree | 3a650feba7da7e408e310ac2d6dc8cef2a4ea096 /include | |
parent | 439df286c89391f7e46c30d310cce4cb047dcd78 (diff) |
Write NULL as "" so readString() always returns a non-NULL string.
BUG=
R=reed@google.com
Review URL: https://codereview.chromium.org/22862002
git-svn-id: http://skia.googlecode.com/svn/trunk@10754 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkWriter32.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/core/SkWriter32.h b/include/core/SkWriter32.h index 82cf346c8e..308e28897f 100644 --- a/include/core/SkWriter32.h +++ b/include/core/SkWriter32.h @@ -168,7 +168,9 @@ public: * Writes a string to the writer, which can be retrieved with * SkReader32::readString(). * The length can be specified, or if -1 is passed, it will be computed by - * calling strlen(). The length must be < 0xFFFF + * calling strlen(). The length must be < max size_t. + * + * If you write NULL, it will be read as "". */ void writeString(const char* str, size_t len = (size_t)-1); |