Home
last modified time | relevance | path

Searched refs:newBytes (Results 1 – 4 of 4) sorted by relevance

/external/icu/icu4c/source/i18n/
Dsortkey.cpp100 uint8_t *newBytes = static_cast<uint8_t *>(uprv_malloc(newCapacity)); in reallocate() local
101 if(newBytes == NULL) { return NULL; } in reallocate()
103 uprv_memcpy(newBytes, getBytes(), length); in reallocate()
106 fUnion.fFields.fBytes = newBytes; in reallocate()
109 return newBytes; in reallocate()
/external/icu/icu4c/source/common/
Dbytestriebuilder.cpp382 char *newBytes=static_cast<char *>(uprv_malloc(newCapacity)); in ensureCapacity() local
383 if(newBytes==NULL) { in ensureCapacity()
390 uprv_memcpy(newBytes+(newCapacity-bytesLength), in ensureCapacity()
393 bytes=newBytes; in ensureCapacity()
/external/chromium_org/third_party/protobuf/java/src/test/java/com/google/protobuf/
DLiteralByteStringTest.java265 byte[] newBytes = stringUnderTest.toByteArray(); in testWriteTo_mutating()
267 Arrays.equals(referenceBytes, newBytes)); in testWriteTo_mutating()
/external/protobuf/java/src/test/java/com/google/protobuf/
DNanoTest.java3072 byte[] newBytes = new byte[bytes.length + extraFieldSize]; in testUnknownFields()
3073 System.arraycopy(bytes, 0, newBytes, 0, bytes.length); in testUnknownFields()
3074 CodedOutputStream.newInstance(newBytes, bytes.length, extraFieldSize).writeString(1001, in testUnknownFields()
3078 AnotherMessage deserialized = AnotherMessage.parseFrom(newBytes); in testUnknownFields()
3081 assertEquals(newBytes.length, serialized.length); in testUnknownFields()