Home
last modified time | relevance | path

Searched refs:nextByte (Results 1 – 25 of 51) sorted by relevance

123

/external/apache-commons-compress/src/main/java/org/apache/commons/compress/utils/
DBitInputStream.java148 final long nextByte = in.read(); in processBitsGreater57() local
149 if (nextByte < 0) { in processBitsGreater57()
150 return nextByte; in processBitsGreater57()
153 long bitsToAdd = nextByte & MASKS[bitsToAddCount]; in processBitsGreater57()
155 overflow = (nextByte >>> bitsToAddCount) & MASKS[overflowBits]; in processBitsGreater57()
158 long bitsToAdd = (nextByte >>> (overflowBits)) & MASKS[bitsToAddCount]; in processBitsGreater57()
160 overflow = nextByte & MASKS[overflowBits]; in processBitsGreater57()
188 final long nextByte = in.read(); in ensureCache() local
189 if (nextByte < 0) { in ensureCache()
193 bitsCached |= (nextByte << bitsCachedSize); in ensureCache()
[all …]
/external/cldr/tools/java/org/unicode/cldr/util/
DCompactStringByteConverter.java158 int nextByte = input[bytePosition++]; in readInt() local
159 if (nextByte >= 0) { in readInt()
161 result |= nextByte; in readInt()
163 … System.out.println(Utility.hex(nextByte & 0xFF, 2) + ", " + Utility.hex(result)); in readInt()
167 result |= nextByte & 0x3F; in readInt()
168 if ((nextByte & 0x40) != 0) { in readInt()
172 … System.out.println(Utility.hex(nextByte & 0xFF, 2) + ", " + Utility.hex(result)); in readInt()
210 int nextByte = input[bytePosition++]; in readUnsignedInt() local
211 if (nextByte >= 0) { in readUnsignedInt()
213 result |= nextByte; in readUnsignedInt()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DCharsetRecog_mbcs.java156 int nextByte(CharsetDetector det) { in nextByte() method in CharsetRecog_mbcs.iteratedChar
204 firstByte = it.charValue = it.nextByte(det); in nextChar()
213 int secondByte = it.nextByte(det); in nextChar()
270 firstByte = it.charValue = it.nextByte(det); in nextChar()
280 int secondByte = it.nextByte(det); in nextChar()
337 firstByte = it.charValue = it.nextByte(det); in nextChar()
348 secondByte = it.nextByte(det); in nextChar()
374 thirdByte = it.nextByte(det); in nextChar()
483 firstByte = it.charValue = it.nextByte(det); in nextChar()
496 secondByte = it.nextByte(det); in nextChar()
[all …]
DCharsetRecog_sbcs.java109 private int nextByte(CharsetDetector det) in nextByte() method in CharsetRecog_sbcs.NGramParser
123 while ((b = nextByte(det)) >= 0) { in parseCharacters()
216 private int nextByte(CharsetDetector det) in nextByte() method in CharsetRecog_sbcs.NGramParser_IBM420
240 while ((b = nextByte(det)) >= 0) { in parseCharacters()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DCharsetRecog_mbcs.java157 int nextByte(CharsetDetector det) { in nextByte() method in CharsetRecog_mbcs.iteratedChar
205 firstByte = it.charValue = it.nextByte(det); in nextChar()
214 int secondByte = it.nextByte(det); in nextChar()
271 firstByte = it.charValue = it.nextByte(det); in nextChar()
281 int secondByte = it.nextByte(det); in nextChar()
338 firstByte = it.charValue = it.nextByte(det); in nextChar()
349 secondByte = it.nextByte(det); in nextChar()
375 thirdByte = it.nextByte(det); in nextChar()
484 firstByte = it.charValue = it.nextByte(det); in nextChar()
497 secondByte = it.nextByte(det); in nextChar()
[all …]
DCharsetRecog_sbcs.java110 private int nextByte(CharsetDetector det) in nextByte() method in CharsetRecog_sbcs.NGramParser
124 while ((b = nextByte(det)) >= 0) { in parseCharacters()
217 private int nextByte(CharsetDetector det) in nextByte() method in CharsetRecog_sbcs.NGramParser_IBM420
241 while ((b = nextByte(det)) >= 0) { in parseCharacters()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/zip/
DBitStreamTest.java68 assertEquals("next byte", -1, stream.nextByte()); in testNextByteFromEmptyStream()
69 assertEquals("next byte", -1, stream.nextByte()); in testNextByteFromEmptyStream()
76 assertEquals("next byte", 0xEA, stream.nextByte()); in testReadAlignedBytes()
77 assertEquals("next byte", 0x35, stream.nextByte()); in testReadAlignedBytes()
78 assertEquals("next byte", -1, stream.nextByte()); in testReadAlignedBytes()
90 assertEquals("next byte", 0x5E, stream.nextByte()); in testNextByte()
91 assertEquals("next byte", -1, stream.nextByte()); // not enough bits left to read a byte in testNextByte()
/external/icu/icu4c/source/i18n/
Dcsrmbcs.cpp132 int32_t IteratedChar::nextByte(InputText *det) in nextByte() function in IteratedChar
248 int32_t firstByte = it->charValue = it->nextByte(det); in nextChar()
258 int32_t secondByte = it->nextByte(det); in nextChar()
300 firstByte = it->charValue = it->nextByte(det); in nextChar()
312 secondByte = it->nextByte(det); in nextChar()
344 thirdByte = it->nextByte(det); in nextChar()
412 firstByte = it->charValue = it->nextByte(det); in nextChar()
423 int32_t secondByte = it->nextByte(det); in nextChar()
466 firstByte = it->charValue = it->nextByte(det); in nextChar()
478 secondByte = it->nextByte(det); in nextChar()
[all …]
Dcsrsbcs.cpp95 int32_t NGramParser::nextByte(InputText *det) in nextByte() function in NGramParser
109 while ((b = nextByte(det)) >= 0) { in parseCharacters()
192 int32_t NGramParser_IBM420::nextByte(InputText *det) in nextByte() function in NGramParser_IBM420
216 while ((b = nextByte(det)) >= 0) { in parseCharacters()
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/h264/read/
DBitstreamReader.java36 private int nextByte; field in BitstreamReader
45 nextByte = is.read(); in BitstreamReader()
89 curByte = nextByte; in advance()
90 nextByte = is.read(); in advance()
124 return !(curByte == -1 || (nextByte == -1 && hasTail)); in moreRBSPData()
162 bits[cnt++] = (nextByte >> (7 - i)) & 0x1; in peakNextBits()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/lz4/
DBlockLZ4CompressorInputStream.java109 int nextByte; in readSizeBytes() local
111 nextByte = readOneByte(); in readSizeBytes()
112 if (nextByte == -1) { in readSizeBytes()
115 accum += nextByte; in readSizeBytes()
116 } while (nextByte == 255); in readSizeBytes()
/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/audio/
DAc3Util.java169 int nextByte = data.readUnsignedByte(); in parseAc3AnnexFFormat() local
170 int channelCount = CHANNEL_COUNT_BY_ACMOD[(nextByte & 0x38) >> 3]; in parseAc3AnnexFFormat()
171 if ((nextByte & 0x04) != 0) { // lfeon in parseAc3AnnexFFormat()
201 int nextByte = data.readUnsignedByte(); in parseEAc3AnnexFFormat() local
202 int channelCount = CHANNEL_COUNT_BY_ACMOD[(nextByte & 0x0E) >> 1]; in parseEAc3AnnexFFormat()
203 if ((nextByte & 0x01) != 0) { // lfeon in parseEAc3AnnexFFormat()
208 nextByte = data.readUnsignedByte(); in parseEAc3AnnexFFormat()
209 int numDepSub = ((nextByte & 0x1E) >> 1); in parseEAc3AnnexFFormat()
220 nextByte = data.readUnsignedByte(); in parseEAc3AnnexFFormat()
221 if ((nextByte & 0x01) != 0) { // flag_ec3_extension_type_a in parseEAc3AnnexFFormat()
/external/jackson-core/src/main/java/com/fasterxml/jackson/core/json/
DByteSourceJsonBootstrapper.java284 byte b = acc.nextByte(); in hasJSONFormat()
290 if (acc.nextByte() != UTF8_BOM_2) { in hasJSONFormat()
296 if (acc.nextByte() != UTF8_BOM_3) { in hasJSONFormat()
302 b = acc.nextByte(); in hasJSONFormat()
372 if (acc.nextByte() != matchStr.charAt(i)) { in tryMatch()
384 return skipSpace(acc, acc.nextByte()); in skipSpace()
397 b = acc.nextByte(); in skipSpace()
/external/llvm-project/llvm/lib/Target/X86/Disassembler/
DX86Disassembler.cpp211 uint8_t nextByte; in readPrefixes() local
226 if ((byte == 0xf2 || byte == 0xf3) && !peek(insn, nextByte)) { in readPrefixes()
232 if (((nextByte == 0xf0) || in readPrefixes()
233 ((nextByte & 0xfe) == 0x86 || (nextByte & 0xf8) == 0x90))) { in readPrefixes()
235 if (!(byte == 0xf3 && nextByte == 0x90)) // PAUSE instruction support in readPrefixes()
242 if (byte == 0xf3 && (nextByte == 0x88 || nextByte == 0x89 || in readPrefixes()
243 nextByte == 0xc6 || nextByte == 0xc7)) { in readPrefixes()
247 if (isREX(insn, nextByte)) { in readPrefixes()
265 uint8_t nextByte; in readPrefixes() local
266 if (peek(insn, nextByte)) in readPrefixes()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/Disassembler/
DX86Disassembler.cpp211 uint8_t nextByte; in readPrefixes() local
226 if ((byte == 0xf2 || byte == 0xf3) && !peek(insn, nextByte)) { in readPrefixes()
232 if (((nextByte == 0xf0) || in readPrefixes()
233 ((nextByte & 0xfe) == 0x86 || (nextByte & 0xf8) == 0x90))) { in readPrefixes()
235 if (!(byte == 0xf3 && nextByte == 0x90)) // PAUSE instruction support in readPrefixes()
242 if (byte == 0xf3 && (nextByte == 0x88 || nextByte == 0x89 || in readPrefixes()
243 nextByte == 0xc6 || nextByte == 0xc7)) { in readPrefixes()
247 if (isREX(insn, nextByte)) { in readPrefixes()
265 uint8_t nextByte; in readPrefixes() local
266 if (peek(insn, nextByte)) in readPrefixes()
[all …]
/external/jackson-core/src/main/java/com/fasterxml/jackson/core/format/
DInputAccessor.java24 byte nextByte() throws IOException; in nextByte() method
118 public byte nextByte() throws IOException in nextByte() method in InputAccessor.Std
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/charsetdet/mbcs/
DEUCTool.java290 int nextByte() { in nextByte() method in EUCTool.iteratedChar
310 firstByte = it.charValue = it.nextByte(); in nextChar()
321 secondByte = it.nextByte(); in nextChar()
347 thirdByte = it.nextByte(); in nextChar()
DBIG5Tool.java290 int nextByte() { in nextByte() method in BIG5Tool.iteratedChar
308 firstByte = it.charValue = it.nextByte(); in nextChar()
321 secondByte = it.nextByte(); in nextChar()
/external/llvm/lib/Target/X86/Disassembler/
DX86DisassemblerDecoder.cpp328 uint8_t nextByte; in readPrefixes() local
351 && !lookAtByte(insn, &nextByte)) in readPrefixes()
361 ((nextByte == 0xf0) || in readPrefixes()
362 ((nextByte & 0xfe) == 0x86 || (nextByte & 0xf8) == 0x90))) in readPrefixes()
371 (nextByte == 0x88 || nextByte == 0x89 || in readPrefixes()
372 nextByte == 0xc6 || nextByte == 0xc7)) in readPrefixes()
374 if (insn->mode == MODE_64BIT && (nextByte & 0xf0) == 0x40) { in readPrefixes()
375 if (consumeByte(insn, &nextByte)) in readPrefixes()
377 if (lookAtByte(insn, &nextByte)) in readPrefixes()
381 if (nextByte != 0x0f && nextByte != 0x90) in readPrefixes()
/external/skqp/src/utils/
DSkUTF.cpp141 uint8_t nextByte = *p; in NextUTF8() local
142 if (!utf8_byte_is_continuation(nextByte)) { in NextUTF8()
145 c = (c << 6) | (nextByte & 0x3F); in NextUTF8()
/external/skia/src/utils/
DSkUTF.cpp142 uint8_t nextByte = *p; in NextUTF8() local
143 if (!utf8_byte_is_continuation(nextByte)) { in NextUTF8()
146 c = (c << 6) | (nextByte & 0x3F); in NextUTF8()
/external/capstone/arch/X86/
DX86DisassemblerDecoder.c480 uint8_t byte = 0, nextByte; in readPrefixes() local
537 if (lookAtByte(insn, &nextByte)) in readPrefixes()
547 if (((nextByte == 0xf0) || in readPrefixes()
548 ((nextByte & 0xfe) == 0x86 || (nextByte & 0xf8) == 0x90))) in readPrefixes()
557 (nextByte == 0x88 || nextByte == 0x89 || in readPrefixes()
558 nextByte == 0xc6 || nextByte == 0xc7)) in readPrefixes()
561 if (insn->mode == MODE_64BIT && (nextByte & 0xf0) == 0x40) { in readPrefixes()
562 if (consumeByte(insn, &nextByte)) in readPrefixes()
564 if (lookAtByte(insn, &nextByte)) in readPrefixes()
/external/mesa3d/src/glx/
Dpixel.c92 GLint elementsLeft, bitOffset, currentByte, nextByte, highBitMask; in FillBitmap() local
130 nextByte = MsbToLsbTable[iter[1]]; in FillBitmap()
133 nextByte = iter[1]; in FillBitmap()
137 ((nextByte & lowBitMask) >> (8 - bitOffset)); in FillBitmap()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/
DBitStream.java58 int nextByte() throws IOException { in nextByte() method in BitStream
/external/jackson-core/src/test/java/perf/
DEnumByBytesLookup.java83 private Trie(Trie<T> base, byte nextByte, Trie<T> nextNode) { in Trie() argument
91 _nextBytes[size-1] = nextByte; in Trie()

123