Home
last modified time | relevance | path

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

12

/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.java154 int nextByte = input[bytePosition++]; in readInt() local
155 if (nextByte >= 0) { in readInt()
157 result |= nextByte; in readInt()
159 … System.out.println(Utility.hex(nextByte & 0xFF, 2) + ", " + Utility.hex(result)); in readInt()
163 result |= nextByte & 0x3F; in readInt()
164 if ((nextByte & 0x40) != 0) { in readInt()
168 … System.out.println(Utility.hex(nextByte & 0xFF, 2) + ", " + Utility.hex(result)); in readInt()
206 int nextByte = input[bytePosition++]; in readUnsignedInt() local
207 if (nextByte >= 0) { in readUnsignedInt()
209 result |= nextByte; in readUnsignedInt()
[all …]
/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/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/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()
Dcsrsbcs.h48 virtual int32_t nextByte(InputText *det);
66 int32_t nextByte(InputText *det);
/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/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/Disassembler/
DX86DisassemblerDecoder.cpp299 uint8_t nextByte; in setPrefixPresent() local
306 if (lookAtByte(insn, &nextByte)) in setPrefixPresent()
314 if (isREX(insn, nextByte) || nextByte == 0x0f || nextByte == 0x66) in setPrefixPresent()
320 if (lookAtByte(insn, &nextByte)) in setPrefixPresent()
323 if (!insn->mandatoryPrefix && (nextByte == 0x0f || isREX(insn, nextByte))) in setPrefixPresent()
341 uint8_t nextByte; in readPrefixes() local
357 if ((byte == 0xf2 || byte == 0xf3) && !lookAtByte(insn, &nextByte)) { in readPrefixes()
365 if (((nextByte == 0xf0) || in readPrefixes()
366 ((nextByte & 0xfe) == 0x86 || (nextByte & 0xf8) == 0x90))) { in readPrefixes()
368 if (!(byte == 0xf3 && nextByte == 0x90)) // PAUSE instruction support in readPrefixes()
[all …]
/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/swiftshader/third_party/llvm-7.0/llvm/lib/Target/WebAssembly/Disassembler/
DWebAssemblyDisassembler.cpp70 static int nextByte(ArrayRef<uint8_t> Bytes, uint64_t &Size) { in nextByte() function
111 auto Opc = nextByte(Bytes, Size); in getInstruction()
127 Opc = nextByte(Bytes, Size); in getInstruction()
/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.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/capstone/arch/X86/
DX86DisassemblerDecoder.c481 uint8_t byte = 0, nextByte; in readPrefixes() local
536 if (lookAtByte(insn, &nextByte)) in readPrefixes()
547 ((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/arj/
DArjArchiveInputStream.java111 int nextByte; in readString() local
112 while ((nextByte = dataIn.readUnsignedByte()) != 0) { in readString()
113 buffer.write(nextByte); in readString()
/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/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/lz77support/
DLZ77Compressor.java370 private int nextHash(int oldHash, byte nextByte) { in nextHash() argument
371 final int nextVal = nextByte & 0xFF; in nextHash()
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DByteStringTest.java634 stillEqual = (duoIter.nextByte() == quintetIter.nextByte()); in testConcat_empty()
639 duoIter.nextByte(); in testConcat_empty()
645 quintetIter.nextByte(); in testConcat_empty()

12