Lines Matching defs:byteLength
48 int SkUTF::CountUTF8(const char* utf8, size_t byteLength) {
53 const char* stop = utf8 + byteLength;
71 int SkUTF::CountUTF16(const uint16_t* utf16, size_t byteLength) {
72 if (!utf16 || !is_align2(intptr_t(utf16)) || !is_align2(byteLength)) {
76 const uint16_t* stop = src + (byteLength >> 1);
97 int SkUTF::CountUTF32(const int32_t* utf32, size_t byteLength) {
98 if (!is_align4(intptr_t(utf32)) || !is_align4(byteLength) || !SkTFitsIn<int>(byteLength >> 2)) {
103 const uint32_t* stop = ptr + (byteLength >> 2);
110 return (int)(byteLength >> 2);