Home
last modified time | relevance | path

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

/cts/tests/tests/location/src/android/location/cts/asn1/base/
DBitStreamReader.java30 private int bitsRead = 0; field in BitStreamReader
41 bitsRead++; in readBit()
42 if (bitsRead > BITS_IN_BYTE) { in readBit()
44 bitsRead = 1; in readBit()
46 return ((buffer[position] >> (BITS_IN_BYTE - bitsRead)) & 1) == 1; in readBit()
54 || (bitsRead < BITS_IN_BYTE && position < buffer.length); in hasBit()
58 if (bitsRead == 0) { in spoolToByteBoundary()
61 bitsRead = 0; in spoolToByteBoundary()
70 int mask = (1 << (8 - bitsRead)) - 1; in readByte()
71 byte result = (byte) ((buffer[position] & mask) << bitsRead); in readByte()
[all …]