Home
last modified time | relevance | path

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

/external/protobuf/java/src/main/java/com/google/protobuf/
DCodedInputStream.java297 private int lastPos = bufferPos;
305 byteArrayStream.write(buffer, lastPos, bufferPos - lastPos); in onRefill()
315 return ByteBuffer.wrap(buffer, lastPos, bufferPos - lastPos); in getSkippedData()
317 byteArrayStream.write(buffer, lastPos, bufferPos); in getSkippedData()
373 if (size <= (bufferSize - bufferPos) && size > 0) { in readString()
376 final String result = new String(buffer, bufferPos, size, "UTF-8"); in readString()
377 bufferPos += size; in readString()
395 int pos = bufferPos; in readStringRequireUtf8()
400 bufferPos = pos + size; in readStringRequireUtf8()
505 if (size <= (bufferSize - bufferPos) && size > 0) { in readBytes()
[all …]
DByteString.java775 private int bufferPos; field in ByteString.Output
794 if (bufferPos == buffer.length) { in write()
797 buffer[bufferPos++] = (byte)b; in write()
802 if (length <= buffer.length - bufferPos) { in write()
804 System.arraycopy(b, offset, buffer, bufferPos, length); in write()
805 bufferPos += length; in write()
808 int copySize = buffer.length - bufferPos; in write()
809 System.arraycopy(b, offset, buffer, bufferPos, copySize); in write()
816 bufferPos = length; in write()
857 cachedBufferPos = bufferPos; in writeTo()
[all …]
/external/protobuf/java/src/main/java/com/google/protobuf/micro/
DCodedInputStreamMicro.java198 if (size <= (bufferSize - bufferPos) && size > 0) { in readString()
201 final String result = new String(buffer, bufferPos, size, "UTF-8"); in readString()
202 bufferPos += size; in readString()
240 if (size <= (bufferSize - bufferPos) && size > 0) { in readBytes()
243 final ByteStringMicro result = ByteStringMicro.copyFrom(buffer, bufferPos, size); in readBytes()
244 bufferPos += size; in readBytes()
440 private int bufferPos; field in CodedInputStreamMicro
468 bufferPos = off; in CodedInputStreamMicro()
475 bufferPos = 0; in CodedInputStreamMicro()
539 byteLimit += totalBytesRetired + bufferPos; in pushLimit()
[all …]
/external/protobuf/java/src/main/java/com/google/protobuf/nano/
DCodedInputByteBufferNano.java190 if (size <= (bufferSize - bufferPos) && size > 0) { in readString()
193 final String result = new String(buffer, bufferPos, size, "UTF-8"); in readString()
194 bufferPos += size; in readString()
232 if (size <= (bufferSize - bufferPos) && size > 0) { in readBytes()
236 System.arraycopy(buffer, bufferPos, result, 0, size); in readBytes()
237 bufferPos += size; in readBytes()
401 private int bufferPos; field in CodedInputByteBufferNano
421 bufferPos = off; in CodedInputByteBufferNano()
482 byteLimit += bufferPos; in pushLimit()
525 final int currentAbsolutePosition = bufferPos; in getBytesUntilLimit()
[all …]
/external/lzma/C/
DBra86.c13 SizeT bufferPos = 0, prevPosT; in x86_Convert() local
22 Byte *p = data + bufferPos; in x86_Convert()
27 bufferPos = (SizeT)(p - data); in x86_Convert()
30 prevPosT = bufferPos - prevPosT; in x86_Convert()
41 prevPosT = bufferPos; in x86_Convert()
43 bufferPos++; in x86_Convert()
48 prevPosT = bufferPos; in x86_Convert()
59 dest = (ip + (UInt32)bufferPos) + src; in x86_Convert()
61 dest = src - (ip + (UInt32)bufferPos); in x86_Convert()
74 bufferPos += 5; in x86_Convert()
[all …]
/external/lzma/CPP/7zip/Compress/
DBcj2Coder.cpp102 UInt32 bufferPos = 0; in CodeReal() local
115 UInt32 size = kBufferSize - (bufferPos + processedSize); in CodeReal()
119 RINOK(inStream->Read(_buffer + bufferPos + processedSize, size, &processedSizeLoc)); in CodeReal()
124 UInt32 endPos = bufferPos + processedSize; in CodeReal()
129 for (bufferPos = 0; bufferPos < endPos; bufferPos++) in CodeReal()
131 Byte b = _buffer[bufferPos]; in CodeReal()
151 bufferPos = 0; in CodeReal()
154 while(bufferPos <= limit) in CodeReal()
156 Byte b = _buffer[bufferPos]; in CodeReal()
160 bufferPos++; in CodeReal()
[all …]
/external/lzma/CPP/7zip/Common/
DFilterCoder.cpp43 UInt32 bufferPos = 0; in Code() local
50 size_t processedSize = kBufferSize - bufferPos; in Code()
53 RINOK(ReadStream(inStream, _buffer + bufferPos, &processedSize)); in Code()
55 UInt32 endPos = bufferPos + (UInt32)processedSize; in Code()
57 bufferPos = Filter->Filter(_buffer, endPos); in Code()
58 if (bufferPos > endPos) in Code()
60 for (; endPos < bufferPos; endPos++) in Code()
62 bufferPos = Filter->Filter(_buffer, endPos); in Code()
65 if (bufferPos == 0) in Code()
71 RINOK(WriteWithLimit(outStream, bufferPos)); in Code()
[all …]
/external/icu/icu4c/source/common/
Dnormlzr.cpp36 buffer(), bufferPos(0) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
45 buffer(), bufferPos(0) in Normalizer()
54 buffer(), bufferPos(0) in Normalizer()
63 buffer(copy.buffer), bufferPos(copy.bufferPos) in Normalizer()
100 …return text->hashCode() + fUMode + fOptions + buffer.hashCode() + bufferPos + currentIndex + nextI… in hashCode()
111 bufferPos==that.bufferPos && in operator ==()
249 if(bufferPos<buffer.length() || nextNormalize()) { in current()
250 return buffer.char32At(bufferPos); in current()
262 if(bufferPos<buffer.length() || nextNormalize()) { in next()
263 UChar32 c=buffer.char32At(bufferPos); in next()
[all …]
Dunames.cpp213 #define WRITE_CHAR(buffer, bufferLength, bufferPos, c) { \ argument
218 ++(bufferPos); \
240 uint16_t token, tokenCount=*tokens++, bufferPos=0; in expandName() local
277 WRITE_CHAR(buffer, bufferLength, bufferPos, c); in expandName()
292 WRITE_CHAR(buffer, bufferLength, bufferPos, c); in expandName()
297 if(!bufferPos && nameChoice == U_EXTENDED_CHAR_NAME) { in expandName()
309 WRITE_CHAR(buffer, bufferLength, bufferPos, c); in expandName()
320 return bufferPos; in expandName()
777 uint16_t i, factor, bufferPos=0; in writeFactorSuffix() local
818 WRITE_CHAR(buffer, bufferLength, bufferPos, c); in writeFactorSuffix()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DNormalizer.java142 private int bufferPos; field in Normalizer
605 copy.bufferPos = bufferPos; in clone()
1424 if(bufferPos<buffer.length() || nextNormalize()) { in current()
1425 return buffer.codePointAt(bufferPos); in current()
1439 if(bufferPos<buffer.length() || nextNormalize()) { in next()
1440 int c=buffer.codePointAt(bufferPos); in next()
1441 bufferPos+=Character.charCount(c); in next()
1457 if(bufferPos>0 || previousNormalize()) { in previous()
1458 int c=buffer.codePointBefore(bufferPos); in previous()
1459 bufferPos-=Character.charCount(c); in previous()
[all …]
/external/jmonkeyengine/engine/src/tools/jme3tools/optimize/
DGeometryBatchFactory.java249 int bufferPos[] = new int[lodLevels]; in makeLods() local
261 lodData[i][bufferPos[i] + j] = buffer.get() + numOfVertices * curGeom; in makeLods()
264 bufferPos[i] += buffer.capacity(); in makeLods()
/external/icu/icu4c/source/common/unicode/
Dnormlzr.h757 int32_t bufferPos; variable