Lines Matching refs:byteLength
85 int SkUTF8_CountUnichars(const void* text, size_t byteLength) {
88 if (byteLength == 0) {
93 const char* stop = utf8 + byteLength;
262 int SkUTF16_CountUnichars(const void* text, size_t byteLength) {
264 if (byteLength == 0) {
267 if (!SkIsAlign2(intptr_t(text)) || !SkIsAlign2(byteLength)) {
272 const uint16_t* stop = src + (byteLength >> 1);
382 int SkUTF32_CountUnichars(const void* text, size_t byteLength) {
383 if (byteLength == 0) {
386 if (!SkIsAlign4(intptr_t(text)) || !SkIsAlign4(byteLength)) {
391 const uint32_t* stop = ptr + (byteLength >> 2);
398 return SkToInt(byteLength >> 2);