Home
last modified time | relevance | path

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

12

/external/cronet/third_party/protobuf/csharp/src/Google.Protobuf/
DParsingPrimitivesWrappers.cs55 if (state.bufferPos + 6 <= state.bufferSize) in ReadFloatWrapperLittleEndian()
58 int length = buffer[state.bufferPos]; in ReadFloatWrapperLittleEndian()
61 state.bufferPos++; in ReadFloatWrapperLittleEndian()
66 if (length != 5 || buffer[state.bufferPos + 1] != 13) in ReadFloatWrapperLittleEndian()
70 state.bufferPos += 2; in ReadFloatWrapperLittleEndian()
86 int finalBufferPos = state.totalBytesRetired + state.bufferPos + length; in ReadFloatWrapperSlow()
100 while (state.totalBytesRetired + state.bufferPos < finalBufferPos); in ReadFloatWrapperSlow()
107 if (state.bufferPos + 10 <= state.bufferSize) in ReadDoubleWrapperLittleEndian()
110 int length = buffer[state.bufferPos]; in ReadDoubleWrapperLittleEndian()
113 state.bufferPos++; in ReadDoubleWrapperLittleEndian()
[all …]
DParsingPrimitives.cs86 if (state.bufferPos + 2 <= state.bufferSize) in ParseTag()
88 int tmp = buffer[state.bufferPos++]; in ParseTag()
96 if ((tmp = buffer[state.bufferPos++]) < 128) in ParseTag()
104 state.bufferPos -= 2; in ParseTag()
166 if (state.bufferPos + 10 > state.bufferSize) in ParseRawVarint64()
171 ulong result = buffer[state.bufferPos++]; in ParseRawVarint64()
180 byte b = buffer[state.bufferPos++]; in ParseRawVarint64()
220 if (state.bufferPos + 5 > state.bufferSize) in ParseRawVarint32()
225 int tmp = buffer[state.bufferPos++]; in ParseRawVarint32()
231 if ((tmp = buffer[state.bufferPos++]) < 128) in ParseRawVarint32()
[all …]
DSegmentedBufferHelper.cs119 byteLimit += state.totalBytesRetired + state.bufferPos; in PushLimit()
151 int currentAbsolutePosition = state.totalBytesRetired + state.bufferPos; in IsReachedLimit()
163 …return state.bufferPos == state.bufferSize && !state.segmentedBufferHelper.RefillBuffer(ref buffer… in IsAtEnd()
185 state.bufferPos = 0; in RefillFromReadOnlySequence()
242 state.bufferPos = 0; in RefillFromCodedInputStream()
290 if (state.bufferPos < state.bufferSize) in CheckCurrentBufferIsEmpty()
DCodedInputStream.cs139 …internal CodedInputStream(Stream input, byte[] buffer, int bufferPos, int bufferSize, bool leaveOp… in CodedInputStream() argument
143 this.state.bufferPos = bufferPos; in CodedInputStream()
161 …internal CodedInputStream(Stream input, byte[] buffer, int bufferPos, int bufferSize, int sizeLimi… in CodedInputStream() argument
162 : this(input, buffer, bufferPos, bufferSize, leaveOpen) in CodedInputStream()
206 … return input.Position - ((state.bufferSize + state.bufferSizeAfterLimit) - state.bufferPos);
208 return state.bufferPos;
DParserInternalState.cs56 internal int bufferPos; field
/external/protobuf/csharp/src/Google.Protobuf/
DParsingPrimitivesWrappers.cs55 if (state.bufferPos + 6 <= state.bufferSize) in ReadFloatWrapperLittleEndian()
58 int length = buffer[state.bufferPos]; in ReadFloatWrapperLittleEndian()
61 state.bufferPos++; in ReadFloatWrapperLittleEndian()
66 if (length != 5 || buffer[state.bufferPos + 1] != 13) in ReadFloatWrapperLittleEndian()
70 state.bufferPos += 2; in ReadFloatWrapperLittleEndian()
86 int finalBufferPos = state.totalBytesRetired + state.bufferPos + length; in ReadFloatWrapperSlow()
100 while (state.totalBytesRetired + state.bufferPos < finalBufferPos); in ReadFloatWrapperSlow()
107 if (state.bufferPos + 10 <= state.bufferSize) in ReadDoubleWrapperLittleEndian()
110 int length = buffer[state.bufferPos]; in ReadDoubleWrapperLittleEndian()
113 state.bufferPos++; in ReadDoubleWrapperLittleEndian()
[all …]
DParsingPrimitives.cs86 if (state.bufferPos + 2 <= state.bufferSize) in ParseTag()
88 int tmp = buffer[state.bufferPos++]; in ParseTag()
96 if ((tmp = buffer[state.bufferPos++]) < 128) in ParseTag()
104 state.bufferPos -= 2; in ParseTag()
166 if (state.bufferPos + 10 > state.bufferSize) in ParseRawVarint64()
171 ulong result = buffer[state.bufferPos++]; in ParseRawVarint64()
180 byte b = buffer[state.bufferPos++]; in ParseRawVarint64()
220 if (state.bufferPos + 5 > state.bufferSize) in ParseRawVarint32()
225 int tmp = buffer[state.bufferPos++]; in ParseRawVarint32()
231 if ((tmp = buffer[state.bufferPos++]) < 128) in ParseRawVarint32()
[all …]
DSegmentedBufferHelper.cs119 byteLimit += state.totalBytesRetired + state.bufferPos; in PushLimit()
151 int currentAbsolutePosition = state.totalBytesRetired + state.bufferPos; in IsReachedLimit()
163 …return state.bufferPos == state.bufferSize && !state.segmentedBufferHelper.RefillBuffer(ref buffer… in IsAtEnd()
185 state.bufferPos = 0; in RefillFromReadOnlySequence()
242 state.bufferPos = 0; in RefillFromCodedInputStream()
290 if (state.bufferPos < state.bufferSize) in CheckCurrentBufferIsEmpty()
DCodedInputStream.cs139 …internal CodedInputStream(Stream input, byte[] buffer, int bufferPos, int bufferSize, bool leaveOp… in CodedInputStream() argument
143 this.state.bufferPos = bufferPos; in CodedInputStream()
161 …internal CodedInputStream(Stream input, byte[] buffer, int bufferPos, int bufferSize, int sizeLimi… in CodedInputStream() argument
162 : this(input, buffer, bufferPos, bufferSize, leaveOpen) in CodedInputStream()
206 … return input.Position - ((state.bufferSize + state.bufferSizeAfterLimit) - state.bufferPos);
208 return state.bufferPos;
DParserInternalState.cs56 internal int bufferPos; field
/external/protobuf/javamicro/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/javanano/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, InternalNano.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/cronet/third_party/icu/source/common/
Dnormlzr.cpp44 buffer(), bufferPos(0) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
53 buffer(), bufferPos(0) in Normalizer()
62 buffer(), bufferPos(0) in Normalizer()
71 buffer(copy.buffer), bufferPos(copy.bufferPos) in Normalizer()
108 …return text->hashCode() + fUMode + fOptions + buffer.hashCode() + bufferPos + currentIndex + nextI… in hashCode()
119 bufferPos==that.bufferPos && in operator ==()
257 if(bufferPos<buffer.length() || nextNormalize()) { in current()
258 return buffer.char32At(bufferPos); in current()
270 if(bufferPos<buffer.length() || nextNormalize()) { in next()
271 UChar32 c=buffer.char32At(bufferPos); in next()
[all …]
Dunames.cpp215 #define WRITE_CHAR(buffer, bufferLength, bufferPos, c) UPRV_BLOCK_MACRO_BEGIN { \ argument
220 ++(bufferPos); \
242 uint16_t token, tokenCount=*tokens++, bufferPos=0; in expandName() local
279 WRITE_CHAR(buffer, bufferLength, bufferPos, c); in expandName()
294 WRITE_CHAR(buffer, bufferLength, bufferPos, c); in expandName()
299 if(!bufferPos && nameChoice == U_EXTENDED_CHAR_NAME) { in expandName()
311 WRITE_CHAR(buffer, bufferLength, bufferPos, c); in expandName()
322 return bufferPos; in expandName()
779 uint16_t i, factor, bufferPos=0; in writeFactorSuffix() local
820 WRITE_CHAR(buffer, bufferLength, bufferPos, c); in writeFactorSuffix()
[all …]
/external/icu/icu4c/source/common/
Dnormlzr.cpp44 buffer(), bufferPos(0) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
53 buffer(), bufferPos(0) in Normalizer()
62 buffer(), bufferPos(0) in Normalizer()
71 buffer(copy.buffer), bufferPos(copy.bufferPos) in Normalizer()
108 …return text->hashCode() + fUMode + fOptions + buffer.hashCode() + bufferPos + currentIndex + nextI… in hashCode()
119 bufferPos==that.bufferPos && in operator ==()
257 if(bufferPos<buffer.length() || nextNormalize()) { in current()
258 return buffer.char32At(bufferPos); in current()
270 if(bufferPos<buffer.length() || nextNormalize()) { in next()
271 UChar32 c=buffer.char32At(bufferPos); in next()
[all …]
Dunames.cpp215 #define WRITE_CHAR(buffer, bufferLength, bufferPos, c) UPRV_BLOCK_MACRO_BEGIN { \ argument
220 ++(bufferPos); \
242 uint16_t token, tokenCount=*tokens++, bufferPos=0; in expandName() local
279 WRITE_CHAR(buffer, bufferLength, bufferPos, c); in expandName()
294 WRITE_CHAR(buffer, bufferLength, bufferPos, c); in expandName()
299 if(!bufferPos && nameChoice == U_EXTENDED_CHAR_NAME) { in expandName()
311 WRITE_CHAR(buffer, bufferLength, bufferPos, c); in expandName()
322 return bufferPos; in expandName()
779 uint16_t i, factor, bufferPos=0; in writeFactorSuffix() local
820 WRITE_CHAR(buffer, bufferLength, bufferPos, c); in writeFactorSuffix()
[all …]
/external/cronet/third_party/protobuf/objectivec/
DGPBCodedInputStream.m78 size_t newSize = state->bufferPos + size;
84 state->bufferPos = state->currentLimit;
91 return ((int8_t *)state->bytes)[state->bufferPos++];
99 memcpy(&value, state->bytes + state->bufferPos, sizeof(int32_t));
101 state->bufferPos += sizeof(int32_t);
110 memcpy(&value, state->bytes + state->bufferPos, sizeof(int64_t));
112 state->bufferPos += sizeof(int64_t);
137 state->bufferPos += size;
237 result = [[NSString alloc] initWithBytes:&state->bytes[state->bufferPos]
240 state->bufferPos += size;
[all …]
DGPBCodedInputStream_PackagePrivate.h43 size_t bufferPos; member
/external/protobuf/objectivec/
DGPBCodedInputStream.m78 size_t newSize = state->bufferPos + size;
84 state->bufferPos = state->currentLimit;
91 return ((int8_t *)state->bytes)[state->bufferPos++];
99 memcpy(&value, state->bytes + state->bufferPos, sizeof(int32_t));
101 state->bufferPos += sizeof(int32_t);
110 memcpy(&value, state->bytes + state->bufferPos, sizeof(int64_t));
112 state->bufferPos += sizeof(int64_t);
137 state->bufferPos += size;
237 result = [[NSString alloc] initWithBytes:&state->bytes[state->bufferPos]
240 state->bufferPos += size;
[all …]
/external/cronet/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DByteString.java1076 private int bufferPos; field in Output
1094 if (bufferPos == buffer.length) { in write()
1097 buffer[bufferPos++] = (byte) b; in write()
1102 if (length <= buffer.length - bufferPos) { in write()
1104 System.arraycopy(b, offset, buffer, bufferPos, length); in write()
1105 bufferPos += length; in write()
1108 int copySize = buffer.length - bufferPos; in write()
1109 System.arraycopy(b, offset, buffer, bufferPos, copySize); in write()
1116 bufferPos = length; in write()
1156 cachedBufferPos = bufferPos; in writeTo()
[all …]
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DByteString.java1076 private int bufferPos; field in Output
1094 if (bufferPos == buffer.length) { in write()
1097 buffer[bufferPos++] = (byte) b; in write()
1102 if (length <= buffer.length - bufferPos) { in write()
1104 System.arraycopy(b, offset, buffer, bufferPos, length); in write()
1105 bufferPos += length; in write()
1108 int copySize = buffer.length - bufferPos; in write()
1109 System.arraycopy(b, offset, buffer, bufferPos, copySize); in write()
1116 bufferPos = length; in write()
1156 cachedBufferPos = bufferPos; in writeTo()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DNormalizer.java146 private int bufferPos; field in Normalizer
657 copy.bufferPos = bufferPos; in clone()
1514 if(bufferPos<buffer.length() || nextNormalize()) { in current()
1515 return buffer.codePointAt(bufferPos); in current()
1531 if(bufferPos<buffer.length() || nextNormalize()) { in next()
1532 int c=buffer.codePointAt(bufferPos); in next()
1533 bufferPos+=Character.charCount(c); in next()
1551 if(bufferPos>0 || previousNormalize()) { in previous()
1552 int c=buffer.codePointBefore(bufferPos); in previous()
1553 bufferPos-=Character.charCount(c); in previous()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DNormalizer.java147 private int bufferPos; field in Normalizer
643 copy.bufferPos = bufferPos; in clone()
1487 if(bufferPos<buffer.length() || nextNormalize()) { in current()
1488 return buffer.codePointAt(bufferPos); in current()
1503 if(bufferPos<buffer.length() || nextNormalize()) { in next()
1504 int c=buffer.codePointAt(bufferPos); in next()
1505 bufferPos+=Character.charCount(c); in next()
1522 if(bufferPos>0 || previousNormalize()) { in previous()
1523 int c=buffer.codePointBefore(bufferPos); in previous()
1524 bufferPos-=Character.charCount(c); in previous()
[all …]
/external/flatbuffers/kotlin/flatbuffers-kotlin/src/commonMain/kotlin/com/google/flatbuffers/kotlin/
DFlexBuffers.kt844 var bufferPos = start in toString() variable
850 c1 = buffer[bufferPos++] in toString()
862 var bufferPos = start in toString() variable
875 val b: Byte = buffer[bufferPos] in toString()
881 ++bufferPos in toString()
884 if (bufferPos < limit) in toString()
888 while (bufferPos < limit) { in toString()
891 return buffer[bufferPos].toInt() in toString()
894 val bufferByte: Byte = buffer[bufferPos++] in toString()
/external/flatbuffers/java/com/google/flatbuffers/
DFlexBuffers.java983 int bufferPos = start; in compareCharSequence() local
999 byte b = bb.get(bufferPos); in compareCharSequence()
1008 ++bufferPos; in compareCharSequence()
1012 while (bufferPos < limit) { in compareCharSequence()
1019 return bb.get(bufferPos); in compareCharSequence()
1023 byte bufferByte = bb.get(bufferPos++); in compareCharSequence()

12