Home
last modified time | relevance | path

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

/tools/apksig/src/main/java/com/android/apksig/internal/asn1/ber/
DByteBufferBerDataValueReader.java48 int firstLengthByte = mBuf.get() & 0xff; in readDataValue() local
51 if ((firstLengthByte & 0x80) == 0) { in readDataValue()
53 contentsLength = readShortFormLength(firstLengthByte); in readDataValue()
56 } else if (firstLengthByte != 0x80) { in readDataValue()
58 contentsLength = readLongFormLength(firstLengthByte); in readDataValue()
125 private int readShortFormLength(int firstLengthByte) { in readShortFormLength() argument
126 return firstLengthByte & 0x7f; in readShortFormLength()
129 private int readLongFormLength(int firstLengthByte) throws BerDataValueFormatException { in readLongFormLength() argument
132 int byteCount = firstLengthByte & 0x7f; in readLongFormLength()
DInputStreamBerDataValueReader.java61 int firstLengthByte = in.read(); in readDataValue() local
62 if (firstLengthByte == -1) { in readDataValue()
69 if ((firstLengthByte & 0x80) == 0) { in readDataValue()
71 contentsLength = readShortFormLength(firstLengthByte); in readDataValue()
74 } else if ((firstLengthByte & 0xff) != 0x80) { in readDataValue()
76 contentsLength = readLongFormLength(in, firstLengthByte); in readDataValue()
134 private static int readShortFormLength(int firstLengthByte) { in readShortFormLength() argument
135 return firstLengthByte & 0x7f; in readShortFormLength()
138 private static int readLongFormLength(InputStream in, int firstLengthByte) in readLongFormLength() argument
142 int byteCount = firstLengthByte & 0x7f; in readLongFormLength()