Lines Matching defs:len
17 size_t len = this->readU32();
21 size_t alignedSize = SkAlign4(len + 1);
25 *outLen = len;
31 size_t len;
32 const char* ptr = this->readString(&len);
34 copy->set(ptr, len);
36 return len;
39 void SkWriter32::writeString(const char str[], size_t len) {
42 len = 0;
44 if ((long)len < 0) {
45 len = strlen(str);
48 // [ 4 byte len ] [ str ... ] [1 - 4 \0s]
49 uint32_t* ptr = this->reservePad(sizeof(uint32_t) + len + 1);
50 *ptr = SkToU32(len);
52 memcpy(chars, str, len);
53 chars[len] = '\0';
56 size_t SkWriter32::WriteStringSize(const char* str, size_t len) {
57 if ((long)len < 0) {
59 len = strlen(str);
63 return SkAlign4(lenBytes + len + 1);