/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | WireFormatTest.java | 63 ByteString rawBytes = message.toByteString(); in testSerialization() local 64 assertEquals(rawBytes.size(), message.getSerializedSize()); in testSerialization() 66 TestAllTypes message2 = TestAllTypes.parseFrom(rawBytes); in testSerialization() 74 ByteString rawBytes = message.toByteString(); in testSerializationPacked() local 75 assertEquals(rawBytes.size(), message.getSerializedSize()); in testSerializationPacked() 77 TestPackedTypes message2 = TestPackedTypes.parseFrom(rawBytes); in testSerializationPacked() 88 ByteString rawBytes = message.toByteString(); in testSerializeExtensions() local 89 assertEquals(rawBytes.size(), message.getSerializedSize()); in testSerializeExtensions() 91 TestAllTypes message2 = TestAllTypes.parseFrom(rawBytes); in testSerializeExtensions() 100 ByteString rawBytes = message.toByteString(); in testSerializePackedExtensions() local [all …]
|
D | DynamicMessageTest.java | 172 ByteString rawBytes = message.toByteString(); in testDynamicMessageSerialization() local 173 TestAllTypes message2 = TestAllTypes.parseFrom(rawBytes); in testDynamicMessageSerialization() 178 assertEquals(TestUtil.getAllSet().toByteString(), rawBytes); in testDynamicMessageSerialization() local 186 ByteString rawBytes = message.toByteString(); in testDynamicMessageParsing() local 189 DynamicMessage.parseFrom(TestAllTypes.getDescriptor(), rawBytes); in testDynamicMessageParsing() 193 Message message3 = message2.getParserForType().parseFrom(rawBytes); in testDynamicMessageParsing() 198 ByteString rawBytes = TestUtil.getAllExtensionsSet().toByteString(); in testDynamicMessageExtensionParsing() local 200 TestAllExtensions.getDescriptor(), rawBytes, in testDynamicMessageExtensionParsing() 206 rawBytes, TestUtil.getExtensionRegistry()); in testDynamicMessageExtensionParsing() 216 ByteString rawBytes = message.toByteString(); in testDynamicMessagePackedSerialization() local [all …]
|
D | CodedInputStreamTest.java | 319 byte[] rawBytes = message.toByteArray(); in testReadWholeMessage() 320 assertEquals(rawBytes.length, message.getSerializedSize()); in testReadWholeMessage() 322 TestAllTypes message2 = TestAllTypes.parseFrom(rawBytes); in testReadWholeMessage() 328 new SmallBlockInputStream(rawBytes, blockSize)); in testReadWholeMessage() 336 byte[] rawBytes = message.toByteArray(); in testSkipWholeMessage() 340 CodedInputStream input1 = CodedInputStream.newInstance(rawBytes); in testSkipWholeMessage() 341 CodedInputStream input2 = CodedInputStream.newInstance(rawBytes); in testSkipWholeMessage() 361 byte[] rawBytes = new byte[] { 1, 2 }; in testSkipRawBytesBug() 362 CodedInputStream input = CodedInputStream.newInstance(rawBytes); in testSkipRawBytesBug() 376 byte[] rawBytes = new byte[] { 1, 2, 3, 4, 5 }; in testSkipRawBytesPastEndOfBufferWithLimit() [all …]
|
D | CodedOutputStreamTest.java | 324 byte[] rawBytes = coder.toByteArray(); in testWriteWholeMessage() 325 assertEqualBytes(outputType, expectedBytes, rawBytes); in testWriteWholeMessage() 349 byte[] rawBytes = coder.toByteArray(); in testWriteWholePackedFieldsMessage() 350 assertEqualBytes(outputType, expectedBytes, rawBytes); in testWriteWholePackedFieldsMessage() 366 byte[] rawBytes = coder.toByteArray(); in testWriteMessageWithNegativeEnumValue() 367 SparseEnumMessage message2 = SparseEnumMessage.parseFrom(rawBytes); in testWriteMessageWithNegativeEnumValue()
|
/external/protobuf/objectivec/Tests/ |
D | GPBWireFormatTests.m | 48 NSData* rawBytes = message.data; 49 XCTAssertEqual(message.serializedSize, (size_t)rawBytes.length); 51 TestAllTypes* message2 = [TestAllTypes parseFromData:rawBytes error:NULL]; 60 NSData* rawBytes = message.data; 61 XCTAssertEqual(message.serializedSize, (size_t)rawBytes.length); 64 [TestPackedTypes parseFromData:rawBytes error:NULL]; 76 NSData* rawBytes = message.data; 77 XCTAssertEqual(message.serializedSize, (size_t)rawBytes.length); 79 TestAllTypes* message2 = [TestAllTypes parseFromData:rawBytes error:NULL]; 89 NSData* rawBytes = message.data; [all …]
|
D | GPBPerfTests.m | 59 NSData* rawBytes = [message data]; 61 message = [[TestAllTypes alloc] initWithData:rawBytes error:NULL]; 72 NSData* rawBytes = [message data]; 75 [[TestAllExtensions alloc] initWithData:rawBytes error:NULL]; 86 NSData* rawBytes = [message data]; 88 message = [[TestPackedTypes alloc] initWithData:rawBytes error:NULL]; 99 NSData* rawBytes = [message data]; 102 [[TestPackedExtensions alloc] initWithData:rawBytes error:NULL];
|
D | GPBCodedOuputStreamTests.m | 312 NSData* rawBytes = message.data; 314 [self getDataFileNamed:@"golden_message" dataToWrite:rawBytes]; 315 XCTAssertEqualObjects(rawBytes, goldenData); 328 XCTAssertEqualObjects(rawBytes, actual); 334 rawBytes = extensions.data; 336 dataToWrite:rawBytes]; 337 XCTAssertEqualObjects(rawBytes, goldenData);
|
D | GPBCodedInputStreamTests.m | 183 NSData* rawBytes = message.data; 184 XCTAssertEqual(message.serializedSize, (size_t)rawBytes.length); 187 [TestAllTypes parseFromData:rawBytes extensionRegistry:nil error:NULL]; 193 NSData* rawBytes = message.data; 197 GPBCodedInputStream* input1 = [GPBCodedInputStream streamWithData:rawBytes]; 198 GPBCodedInputStream* input2 = [GPBCodedInputStream streamWithData:rawBytes];
|
/external/protobuf/csharp/src/Google.Protobuf/ |
D | CodedOutputStream.cs | 181 byte[] rawBytes = BitConverter.GetBytes(value); in WriteFloat() 184 ByteArray.Reverse(rawBytes); in WriteFloat() 189 buffer[position++] = rawBytes[0]; in WriteFloat() 190 buffer[position++] = rawBytes[1]; in WriteFloat() 191 buffer[position++] = rawBytes[2]; in WriteFloat() 192 buffer[position++] = rawBytes[3]; in WriteFloat() 196 WriteRawBytes(rawBytes, 0, 4); in WriteFloat()
|
D | CodedInputStream.cs | 482 byte[] rawBytes = ReadRawBytes(4); in ReadFloat() 485 ByteArray.Reverse(rawBytes); in ReadFloat() 487 return BitConverter.ToSingle(rawBytes, 0); in ReadFloat()
|
/external/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | MessageReflection.java | 899 ByteString rawBytes = null; // If we encounter "message" before "typeId" in mergeMessageSetExtensionFromCodedStream() local 932 rawBytes = null; in mergeMessageSetExtensionFromCodedStream() 937 rawBytes = input.readBytes(); in mergeMessageSetExtensionFromCodedStream() 948 if (rawBytes != null && typeId != 0) { // Zero is not a valid type ID. in mergeMessageSetExtensionFromCodedStream() 951 rawBytes, extension, extensionRegistry, target); in mergeMessageSetExtensionFromCodedStream() 953 if (rawBytes != null) { in mergeMessageSetExtensionFromCodedStream() 955 .addLengthDelimited(rawBytes).build()); in mergeMessageSetExtensionFromCodedStream() 962 ByteString rawBytes, in mergeMessageSetExtensionFromBytes() argument 973 rawBytes, extensionRegistry,field, extension.defaultInstance); in mergeMessageSetExtensionFromBytes() 978 extension.defaultInstance, extensionRegistry, rawBytes); in mergeMessageSetExtensionFromBytes()
|
/external/guava/guava/src/com/google/common/net/ |
D | InetAddresses.java | 268 ByteBuffer rawBytes = ByteBuffer.allocate(2 * IPV6_PART_COUNT); in textToNumericFormatV6() local 271 rawBytes.putShort(parseHextet(parts[i])); in textToNumericFormatV6() 274 rawBytes.putShort((short) 0); in textToNumericFormatV6() 277 rawBytes.putShort(parseHextet(parts[parts.length - i])); in textToNumericFormatV6() 282 return rawBytes.array(); in textToNumericFormatV6()
|
/external/protobuf/csharp/src/Google.Protobuf.Test/ |
D | CodedInputStreamTest.cs | 234 byte[] rawBytes = message.ToByteArray(); in ReadWholeMessage_VaryingBlockSizes() 235 Assert.AreEqual(rawBytes.Length, message.CalculateSize()); in ReadWholeMessage_VaryingBlockSizes() 236 TestAllTypes message2 = TestAllTypes.Parser.ParseFrom(rawBytes); in ReadWholeMessage_VaryingBlockSizes() 242 … message2 = TestAllTypes.Parser.ParseFrom(new SmallBlockInputStream(rawBytes, blockSize)); in ReadWholeMessage_VaryingBlockSizes()
|
D | CodedOutputStreamTest.cs | 198 byte[] rawBytes = message.ToByteArray(); in WriteWholeMessage_VaryingBlockSizes() 207 Assert.AreEqual(rawBytes, rawOutput.ToArray()); in WriteWholeMessage_VaryingBlockSizes()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowParcelTest.java | 620 byte[] rawBytes = parcel.marshall(); in testMarshallAndUnmarshall() 622 parcel2.unmarshall(rawBytes, 0, rawBytes.length); in testMarshallAndUnmarshall()
|
/external/protobuf/objectivec/ |
D | GPBMessage.m | 1957 NSData *rawBytes = nil; 1973 rawBytes = 1984 if (rawBytes != nil && typeId != 0) { 1987 [[GPBCodedInputStream alloc] initWithData:rawBytes]; 1996 [unknownFields mergeMessageSetMessage:typeId data:rawBytes];
|
/external/protobuf/javanano/src/test/java/com/google/protobuf/nano/ |
D | NanoTest.java | 2672 byte[] rawBytes = new byte[] { 1, 2 }; in testSkipRawBytesBug() 2673 CodedInputByteBufferNano input = CodedInputByteBufferNano.newInstance(rawBytes); in testSkipRawBytesBug() 2687 byte[] rawBytes = new byte[] { 1, 2, 3, 4, 5 }; in testSkipRawBytesPastEndOfBufferWithLimit() 2688 CodedInputByteBufferNano input = CodedInputByteBufferNano.newInstance(rawBytes); in testSkipRawBytesPastEndOfBufferWithLimit()
|