Home
last modified time | relevance | path

Searched refs:lengthBytes (Results 1 – 1 of 1) sorted by relevance

/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DAndroidBinXmlParser.java684 int lengthBytes = lengthChars * 2; in getLengthPrefixedUtf16EncodedString() local
691 encoded.position(encoded.position() + lengthBytes); in getLengthPrefixedUtf16EncodedString()
693 arr = new byte[lengthBytes]; in getLengthPrefixedUtf16EncodedString()
699 if ((arr[arrOffset + lengthBytes] != 0) in getLengthPrefixedUtf16EncodedString()
700 || (arr[arrOffset + lengthBytes + 1] != 0)) { in getLengthPrefixedUtf16EncodedString()
704 return new String(arr, arrOffset, lengthBytes, "UTF-16LE"); in getLengthPrefixedUtf16EncodedString()
717 int lengthBytes = getUnsignedInt8(encoded); in getLengthPrefixedUtf8EncodedString() local
718 if ((lengthBytes & 0x80) != 0) { in getLengthPrefixedUtf8EncodedString()
719 lengthBytes = ((lengthBytes & 0x7f) << 8) | getUnsignedInt8(encoded); in getLengthPrefixedUtf8EncodedString()
723 lengthBytes = getUnsignedInt8(encoded); in getLengthPrefixedUtf8EncodedString()
[all …]