Home
last modified time | relevance | path

Searched refs:InternalNano (Results 1 – 8 of 8) sorted by relevance

/external/protobuf/javanano/src/main/java/com/google/protobuf/nano/
DCodedOutputByteBufferNano.java1125 case InternalNano.TYPE_BOOL: in computeFieldSize()
1127 case InternalNano.TYPE_BYTES: in computeFieldSize()
1129 case InternalNano.TYPE_STRING: in computeFieldSize()
1131 case InternalNano.TYPE_FLOAT: in computeFieldSize()
1133 case InternalNano.TYPE_DOUBLE: in computeFieldSize()
1135 case InternalNano.TYPE_ENUM: in computeFieldSize()
1137 case InternalNano.TYPE_FIXED32: in computeFieldSize()
1139 case InternalNano.TYPE_INT32: in computeFieldSize()
1141 case InternalNano.TYPE_UINT32: in computeFieldSize()
1143 case InternalNano.TYPE_SINT32: in computeFieldSize()
[all …]
DCodedInputByteBufferNano.java193 final String result = new String(buffer, bufferPos, size, InternalNano.UTF_8); in readString()
198 return new String(readRawBytes(size), InternalNano.UTF_8); in readString()
661 case InternalNano.TYPE_DOUBLE: in readPrimitiveField()
663 case InternalNano.TYPE_FLOAT: in readPrimitiveField()
665 case InternalNano.TYPE_INT64: in readPrimitiveField()
667 case InternalNano.TYPE_UINT64: in readPrimitiveField()
669 case InternalNano.TYPE_INT32: in readPrimitiveField()
671 case InternalNano.TYPE_FIXED64: in readPrimitiveField()
673 case InternalNano.TYPE_FIXED32: in readPrimitiveField()
675 case InternalNano.TYPE_BOOL: in readPrimitiveField()
[all …]
DExtension.java58 public static final int TYPE_DOUBLE = InternalNano.TYPE_DOUBLE;
59 public static final int TYPE_FLOAT = InternalNano.TYPE_FLOAT;
60 public static final int TYPE_INT64 = InternalNano.TYPE_INT64;
61 public static final int TYPE_UINT64 = InternalNano.TYPE_UINT64;
62 public static final int TYPE_INT32 = InternalNano.TYPE_INT32;
63 public static final int TYPE_FIXED64 = InternalNano.TYPE_FIXED64;
64 public static final int TYPE_FIXED32 = InternalNano.TYPE_FIXED32;
65 public static final int TYPE_BOOL = InternalNano.TYPE_BOOL;
66 public static final int TYPE_STRING = InternalNano.TYPE_STRING;
67 public static final int TYPE_GROUP = InternalNano.TYPE_GROUP;
[all …]
DInternalNano.java49 public final class InternalNano { class
73 private InternalNano() {} in InternalNano() method in InternalNano
116 return new String(bytes.getBytes(ISO_8859_1), InternalNano.UTF_8); in stringDefaultValue()
136 return text.getBytes(InternalNano.UTF_8); in copyFromUtf8()
DExtendableMessageNano.java166 InternalNano.cloneUnknownFieldData(this, cloned); in clone()
/external/protobuf/javanano/src/test/java/com/google/protobuf/nano/
DNanoTest.java465 msg.optionalBytes = InternalNano.copyFromUtf8("hello"); in testNanoOptionalBytes()
467 assertEquals("hello", new String(msg.optionalBytes, InternalNano.UTF_8)); in testNanoOptionalBytes()
471 .optionalBytes = InternalNano.copyFromUtf8("hello"); in testNanoOptionalBytes()
476 msg.optionalBytes = InternalNano.copyFromUtf8("bye"); in testNanoOptionalBytes()
485 assertEquals("bye", new String(newMsg.optionalBytes, InternalNano.UTF_8)); in testNanoOptionalBytes()
1351 InternalNano.copyFromUtf8("hello"), in testNanoRepeatedBytes()
1352 InternalNano.copyFromUtf8("bye"), in testNanoRepeatedBytes()
1353 InternalNano.copyFromUtf8("boo") in testNanoRepeatedBytes()
1355 assertEquals("bye", new String(msg.repeatedBytes[1], InternalNano.UTF_8)); in testNanoRepeatedBytes()
1356 assertEquals("boo", new String(msg.repeatedBytes[2], InternalNano.UTF_8)); in testNanoRepeatedBytes()
[all …]
/external/protobuf/util/
DMakefile.am361 javanano/src/main/java/com/google/protobuf/nano/InternalNano.java \
/external/protobuf/
DMakefile.am361 javanano/src/main/java/com/google/protobuf/nano/InternalNano.java \