diff options
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkData.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/core/SkData.h b/include/core/SkData.h index f24cf9c92c..61b52c5480 100644 --- a/include/core/SkData.h +++ b/include/core/SkData.h @@ -69,7 +69,9 @@ public: /** * Create a new dataref by copying the specified c-string - * (a null-terminated array of bytes). + * (a null-terminated array of bytes). The returned SkData will have size() + * equal to strlen(cstr) + 1. If cstr is NULL, it will be treated the same + * as "". */ static SkData* NewWithCString(const char cstr[]); |