Lines Matching refs:byteLength
157 const SkUnichar* convert(const void* text, size_t byteLength, SkTextEncoding encoding) { in convert() argument
161 uni = fStorage.reset(byteLength); in convert()
163 const char* end = ptr + byteLength; in convert()
169 uni = fStorage.reset(byteLength); in convert()
171 const uint16_t* end = ptr + (byteLength >> 1); in convert()
189 int SkFont::textToGlyphs(const void* text, size_t byteLength, SkTextEncoding encoding, in textToGlyphs() argument
191 if (0 == byteLength) { in textToGlyphs()
197 int count = SkFontPriv::CountTextElements(text, byteLength, encoding); in textToGlyphs()
208 const SkUnichar* uni = storage.convert(text, byteLength, encoding); in textToGlyphs()
404 int SkFontPriv::CountTextElements(const void* text, size_t byteLength, SkTextEncoding encoding) { in CountTextElements() argument
407 return SkUTF::CountUTF8(reinterpret_cast<const char*>(text), byteLength); in CountTextElements()
409 return SkUTF::CountUTF16(reinterpret_cast<const uint16_t*>(text), byteLength); in CountTextElements()
411 return byteLength >> 2; in CountTextElements()
413 return byteLength >> 1; in CountTextElements()