Home
last modified time | relevance | path

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

/external/protobuf/java/core/src/main/java/com/google/protobuf/
DRopeByteString.java343 protected void copyToInternal(byte[] target, int sourceOffset, in copyToInternal() argument
345 if (sourceOffset + numberToCopy <= leftLength) { in copyToInternal()
346 left.copyToInternal(target, sourceOffset, targetOffset, numberToCopy); in copyToInternal()
347 } else if (sourceOffset >= leftLength) { in copyToInternal()
348 right.copyToInternal(target, sourceOffset - leftLength, targetOffset, in copyToInternal()
351 int leftLength = this.leftLength - sourceOffset; in copyToInternal()
352 left.copyToInternal(target, sourceOffset, targetOffset, leftLength); in copyToInternal()
390 void writeToInternal(OutputStream out, int sourceOffset, in writeToInternal() argument
392 if (sourceOffset + numberToWrite <= leftLength) { in writeToInternal()
393 left.writeToInternal(out, sourceOffset, numberToWrite); in writeToInternal()
[all …]
DByteString.java593 public final void copyTo(byte[] target, int sourceOffset, int targetOffset, in copyTo() argument
595 checkRange(sourceOffset, sourceOffset + numberToCopy, size()); in copyTo()
598 copyToInternal(target, sourceOffset, targetOffset, numberToCopy); in copyTo()
608 protected abstract void copyToInternal(byte[] target, int sourceOffset, in copyToInternal() argument
653 final void writeTo(OutputStream out, int sourceOffset, int numberToWrite) in writeTo() argument
655 checkRange(sourceOffset, sourceOffset + numberToWrite, size()); in writeTo()
657 writeToInternal(out, sourceOffset, numberToWrite); in writeTo()
665 abstract void writeToInternal(OutputStream out, int sourceOffset, int numberToWrite) in writeToInternal() argument
1288 byte[] target, int sourceOffset, int targetOffset, int numberToCopy) { in copyToInternal() argument
1292 System.arraycopy(bytes, sourceOffset, target, targetOffset, numberToCopy); in copyToInternal()
[all …]
DNioByteString.java108 byte[] target, int sourceOffset, int targetOffset, int numberToCopy) { in copyToInternal() argument
110 slice.position(sourceOffset); in copyToInternal()
130 void writeToInternal(OutputStream out, int sourceOffset, int numberToWrite) throws IOException { in writeToInternal() argument
134 int bufferOffset = buffer.arrayOffset() + buffer.position() + sourceOffset; in writeToInternal()
139 ByteBufferWriter.write(slice(sourceOffset, sourceOffset + numberToWrite), out); in writeToInternal()
/external/messageformat/java/com/ibm/icu/simple/
DMessageFormat.java1195 int sourceOffset = pos.getIndex(); in parse() local
1204 if (len == 0 || msgString.regionMatches(prevIndex, source, sourceOffset, len)) { in parse()
1205 sourceOffset += len; in parse()
1208 pos.setErrorIndex(sourceOffset); in parse()
1213 pos.setIndex(sourceOffset); in parse()
1248 tempStatus.setIndex(sourceOffset); in parse()
1250 if (tempStatus.getIndex() == sourceOffset) { in parse()
1251 pos.setErrorIndex(sourceOffset); in parse()
1255 sourceOffset = tempStatus.getIndex(); in parse()
1266 next = source.indexOf(stringAfterArgument, sourceOffset); in parse()
[all …]
/external/tpm2/
DNVMem.c226 unsigned int sourceOffset, // IN: source offset in _plat__NvMemoryMove() argument
231 assert(sourceOffset + size <= NV_MEMORY_SIZE); in _plat__NvMemoryMove()
234 memmove(&s_NV[destOffset], &s_NV[sourceOffset], size); in _plat__NvMemoryMove()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DMessageFormat.java1242 int sourceOffset = pos.getIndex(); in parse() local
1251 if (len == 0 || msgString.regionMatches(prevIndex, source, sourceOffset, len)) { in parse()
1252 sourceOffset += len; in parse()
1255 pos.setErrorIndex(sourceOffset); in parse()
1260 pos.setIndex(sourceOffset); in parse()
1295 tempStatus.setIndex(sourceOffset); in parse()
1297 if (tempStatus.getIndex() == sourceOffset) { in parse()
1298 pos.setErrorIndex(sourceOffset); in parse()
1302 sourceOffset = tempStatus.getIndex(); in parse()
1313 next = source.indexOf(stringAfterArgument, sourceOffset); in parse()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DMessageFormat.java1211 int sourceOffset = pos.getIndex(); in parse() local
1220 if (len == 0 || msgString.regionMatches(prevIndex, source, sourceOffset, len)) { in parse()
1221 sourceOffset += len; in parse()
1224 pos.setErrorIndex(sourceOffset); in parse()
1229 pos.setIndex(sourceOffset); in parse()
1264 tempStatus.setIndex(sourceOffset); in parse()
1266 if (tempStatus.getIndex() == sourceOffset) { in parse()
1267 pos.setErrorIndex(sourceOffset); in parse()
1271 sourceOffset = tempStatus.getIndex(); in parse()
1282 next = source.indexOf(stringAfterArgument, sourceOffset); in parse()
[all …]
/external/icu/icu4c/source/i18n/
Dmsgfmt.cpp1384 int32_t sourceOffset = pos.getIndex(); in parse() local
1394 if (len == 0 || (0 == msgString.compare(prevIndex, len, source, sourceOffset, len))) { in parse()
1395 sourceOffset += len; in parse()
1398 pos.setErrorIndex(sourceOffset); in parse()
1403 pos.setIndex(sourceOffset); in parse()
1425 tempStatus.setIndex(sourceOffset); in parse()
1427 if (tempStatus.getIndex() == sourceOffset) { in parse()
1428 pos.setErrorIndex(sourceOffset); in parse()
1431 sourceOffset = tempStatus.getIndex(); in parse()
1446 next = source.indexOf(stringAfterArgument, sourceOffset); in parse()
[all …]
Dchoicfmt.cpp543 const UnicodeString &source, int32_t sourceOffset) { in matchStringUntilLimitPart() argument
552 … if (length != 0 && 0 != source.compare(sourceOffset, length, msgString, prevIndex, length)) { in matchStringUntilLimitPart()
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
DCharsetASCII.java63 int sourceOffset = source.arrayOffset(); in decodeLoop() local
64 int sourceIndex = oldSource + sourceOffset; in decodeLoop()
221 int sourceOffset = source.arrayOffset(); in encodeLoop() local
222 int sourceIndex = oldSource + sourceOffset; in encodeLoop()
/external/protobuf/javamicro/src/main/java/com/google/protobuf/micro/
DByteStringMicro.java138 public void copyTo(final byte[] target, final int sourceOffset, in copyTo() argument
141 System.arraycopy(bytes, sourceOffset, target, targetOffset, size); in copyTo()
/external/icu/icu4c/source/common/
Ducnv_ct.c470 int32_t sourceOffset = 0; in UConverter_toUnicode_CompoundText_OFFSETS() local
518sourceOffset = uprv_strlen((char*)escSeqCompoundText[currentState]) - args->converter->toULength; in UConverter_toUnicode_CompoundText_OFFSETS()
520 mySource += sourceOffset; in UConverter_toUnicode_CompoundText_OFFSETS()
538 sourceOffset = findNextEsc(mySource, mySourceLimit); in UConverter_toUnicode_CompoundText_OFFSETS()
540 tmpSourceLimit = mySource + sourceOffset; in UConverter_toUnicode_CompoundText_OFFSETS()
/external/conscrypt/common/src/main/java/org/conscrypt/
DSslWrapper.java507 int writeArray(byte[] sourceJava, int sourceOffset, int sourceLength) throws IOException { in writeArray() argument
509 ssl, sourceJava, sourceOffset, sourceLength, handshakeCallbacks); in writeArray()
560 int writeArray(byte[] sourceJava, int sourceOffset, int sourceLength) throws IOException { in writeArray() argument
562 ssl, bio, sourceJava, sourceOffset, sourceLength, handshakeCallbacks); in writeArray()
DNativeCrypto.java1233 int sourceOffset, int sourceLength, SSLHandshakeCallbacks shc) throws IOException; in ENGINE_SSL_write_heap() argument
1245 int sourceOffset, int sourceLength, SSLHandshakeCallbacks shc) throws IOException; in ENGINE_SSL_write_BIO_heap() argument
/external/tpm2/include/tpm2/
DPlatform.h239 unsigned int sourceOffset, // IN: source offset
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DLiteralByteStringTest.java134 int sourceOffset = 213; in testCopyTo_ByteArrayOffsetLength() local
135 stringUnderTest.copyTo(destination, sourceOffset, destinationOffset, length); in testCopyTo_ByteArrayOffsetLength()
138 stillEqual = referenceBytes[i + sourceOffset] == destination[i + destinationOffset]; in testCopyTo_ByteArrayOffsetLength()
DNioByteStringTest.java128 int sourceOffset = 213; in testCopyTo_ByteArrayOffsetLength() local
129 testString.copyTo(destination, sourceOffset, destinationOffset, length); in testCopyTo_ByteArrayOffsetLength()
132 stillEqual = BYTES[i + sourceOffset] == destination[i + destinationOffset]; in testCopyTo_ByteArrayOffsetLength()
/external/icu/icu4c/source/i18n/unicode/
Dchoicfmt.h525 const UnicodeString &source, int32_t sourceOffset);
/external/r8/src/main/java/com/android/tools/r8/ir/conversion/
DIRBuilder.java1675 private void ensureSuccessorBlock(int sourceOffset, int targetOffset, boolean normal) {
1677 int sourceStartOffset = getBlockStartOffset(sourceOffset);
1689 void ensureNormalSuccessorBlock(int sourceOffset, int targetOffset) {
1690 ensureSuccessorBlock(sourceOffset, targetOffset, true);
1693 void ensureExceptionalSuccessorBlock(int sourceOffset, int targetOffset) {
1694 ensureSuccessorBlock(sourceOffset, targetOffset, false);
/external/conscrypt/common/src/jni/main/cpp/
DNativeCrypto.cpp8949 jbyteArray sourceJava, jint sourceOffset, in NativeCrypto_ENGINE_SSL_write_BIO_heap() argument
8975 if (ARRAY_OFFSET_LENGTH_INVALID(source, sourceOffset, sourceLength)) { in NativeCrypto_ENGINE_SSL_write_BIO_heap()
8979 ssl, sourceOffset, sourceLength, source.size()); in NativeCrypto_ENGINE_SSL_write_BIO_heap()
9002 int result = BIO_write(bio, reinterpret_cast<const char*>(source.get()) + sourceOffset, in NativeCrypto_ENGINE_SSL_write_BIO_heap()
9008 ssl, bio, source.get(), sourceOffset, sourceLength, shc, result); in NativeCrypto_ENGINE_SSL_write_BIO_heap()
9009 JNI_TRACE_PACKET_DATA(ssl, 'O', reinterpret_cast<const char*>(source.get()) + sourceOffset, in NativeCrypto_ENGINE_SSL_write_BIO_heap()
9169 jbyteArray sourceJava, jint sourceOffset, in NativeCrypto_ENGINE_SSL_write_heap() argument
9186 if (ARRAY_OFFSET_LENGTH_INVALID(source, sourceOffset, sourceLength)) { in NativeCrypto_ENGINE_SSL_write_heap()
9190 ssl, sourceOffset, sourceLength, source.size()); in NativeCrypto_ENGINE_SSL_write_heap()
9213 int result = SSL_write(ssl, reinterpret_cast<const char*>(source.get()) + sourceOffset, in NativeCrypto_ENGINE_SSL_write_heap()
[all …]