Home
last modified time | relevance | path

Searched refs:MessageNano (Results 1 – 21 of 21) sorted by relevance

/external/protobuf/javanano/src/main/java/com/google/protobuf/nano/
DMessageNano.java41 public abstract class MessageNano { class
93 public abstract MessageNano mergeFrom(CodedInputByteBufferNano input) throws IOException; in mergeFrom()
99 public static final byte[] toByteArray(MessageNano msg) { in toByteArray()
113 public static final void toByteArray(MessageNano msg, byte[] data, int offset, int length) { in toByteArray()
129 public static final <T extends MessageNano> T mergeFrom(T msg, final byte[] data) in mergeFrom()
138 public static final <T extends MessageNano> T mergeFrom(T msg, final byte[] data, in mergeFrom()
158 public static final boolean messageNanoEquals(MessageNano a, MessageNano b) { in messageNanoEquals()
195 public MessageNano clone() throws CloneNotSupportedException { in clone()
196 return (MessageNano) super.clone(); in clone()
DFieldData.java206 } else if (value instanceof MessageNano) { in clone()
207 clone.value = ((MessageNano) value).clone(); in clone()
227 } else if (value instanceof MessageNano[]) { in clone()
228 MessageNano[] valueArray = (MessageNano[]) value; in clone()
229 MessageNano[] cloneArray = new MessageNano[valueArray.length]; in clone()
DExtension.java85 public static <M extends ExtendableMessageNano<M>, T extends MessageNano>
101 public static <M extends ExtendableMessageNano<M>, T extends MessageNano>
112 public static <M extends ExtendableMessageNano<M>, T extends MessageNano>
226 MessageNano group = (MessageNano) messageType.newInstance(); in readData()
230 MessageNano message = (MessageNano) messageType.newInstance(); in readData()
266 MessageNano groupValue = (MessageNano) value; in writeSingularData()
273 MessageNano messageValue = (MessageNano) value; in writeSingularData()
322 MessageNano groupValue = (MessageNano) value; in computeSingularSerializedSize()
325 MessageNano messageValue = (MessageNano) value; in computeSingularSerializedSize()
DCodedOutputByteBufferNano.java156 public void writeGroup(final int fieldNumber, final MessageNano value) in writeGroup()
164 public void writeMessage(final int fieldNumber, final MessageNano value) in writeMessage()
513 public void writeGroupNoTag(final MessageNano value) throws IOException { in writeGroupNoTag()
518 public void writeMessageNoTag(final MessageNano value) throws IOException { in writeMessageNoTag()
653 final MessageNano value) { in computeGroupSize()
662 final MessageNano value) { in computeMessageSize()
843 public static int computeGroupSizeNoTag(final MessageNano value) { in computeGroupSizeNoTag()
851 public static int computeMessageSizeNoTag(final MessageNano value) { in computeMessageSizeNoTag()
1158 return computeMessageSize(number, (MessageNano) object); in computeFieldSize()
1160 return computeGroupSize(number, (MessageNano) object); in computeFieldSize()
[all …]
DMessageNanoPrinter.java61 public static <T extends MessageNano> String print(T message) { in print()
97 } else if (object instanceof MessageNano) { // Nano proto message in print()
DCodedInputByteBufferNano.java203 public void readGroup(final MessageNano msg, final int fieldNumber) in readGroup()
215 public void readMessage(final MessageNano msg) in readMessage()
DExtendableMessageNano.java40 extends MessageNano {
DInternalNano.java413 input.readMessage((MessageNano) value); in mergeMapEntry()
/external/protobuf/javanano/src/test/java/com/google/protobuf/nano/
DNanoTest.java87 byte [] result = MessageNano.toByteArray(msg); in testSimpleMessageNano()
126 byte [] result = MessageNano.toByteArray(msg); in testRecursiveMessageNano()
144 assertEquals(0, MessageNano.toByteArray(msg).length); in testMessageNoFields()
156 byte [] result = MessageNano.toByteArray(msg); in testNanoRequiredInt32()
176 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalInt32()
197 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalInt64()
218 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalUint32()
239 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalUint64()
260 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalSint32()
281 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalSint64()
[all …]
/external/protobuf/javanano/src/device/main/java/com/google/protobuf/nano/android/
DParcelableMessageNanoCreator.java38 import com.google.protobuf.nano.MessageNano;
43 public final class ParcelableMessageNanoCreator<T extends MessageNano>
65 .asSubclass(MessageNano.class); in createFromParcel()
68 MessageNano.mergeFrom(proto, data); in createFromParcel()
92 static <T extends MessageNano> void writeToParcel(Class<T> clazz, MessageNano message, in writeToParcel()
95 out.writeByteArray(MessageNano.toByteArray(message)); in writeToParcel()
DParcelableMessageNano.java36 import com.google.protobuf.nano.MessageNano;
41 public abstract class ParcelableMessageNano extends MessageNano implements Parcelable {
/external/grpc-grpc-java/protobuf-nano/src/main/java/io/grpc/protobuf/nano/
DNanoProtoInputStream.java20 import com.google.protobuf.nano.MessageNano;
35 @Nullable private MessageNano message;
38 NanoProtoInputStream(MessageNano message) { in NanoProtoInputStream()
44 partial = new ByteArrayInputStream(MessageNano.toByteArray(message)); in toPartial()
DNanoUtils.java22 import com.google.protobuf.nano.MessageNano;
42 public static <T extends MessageNano> Marshaller<T> marshaller(MessageNanoFactory<T> factory) { in marshaller()
46 private static final class MessageMarshaller<T extends MessageNano> implements Marshaller<T> {
DMessageNanoFactory.java19 import com.google.protobuf.nano.MessageNano;
28 public interface MessageNanoFactory<T extends MessageNano> {
/external/grpc-grpc-java/protobuf-nano/src/generated/test/javanano/io/grpc/protobuf/nano/
DMessages.java9 com.google.protobuf.nano.MessageNano {
127 return com.google.protobuf.nano.MessageNano.mergeFrom(new Message(), data); in parseFrom()
/external/grpc-grpc-java/protobuf-nano/src/test/java/io/grpc/protobuf/nano/
DNanoUtilsTest.java26 import com.google.protobuf.nano.MessageNano;
59 assertTrue(MessageNano.messageNanoEquals(m, m2)); in testRoundTrip()
/external/grpc-grpc-java/compiler/src/testNano/golden/
DTestDeprecatedService.java.txt64 private static final class NanoFactory<T extends com.google.protobuf.nano.MessageNano>
DTestService.java.txt203 private static final class NanoFactory<T extends com.google.protobuf.nano.MessageNano>
/external/protobuf/javanano/
DREADME.md102 MessageNano.
/external/protobuf/
DMakefile.am360 javanano/src/main/java/com/google/protobuf/nano/MessageNano.java \
DCHANGES.txt481 MessageNano.