Home
last modified time | relevance | path

Searched refs:fieldNumber (Results 1 – 25 of 49) sorted by relevance

12

/external/protobuf/javamicro/src/main/java/com/google/protobuf/micro/
DCodedOutputStreamMicro.java120 public void writeDouble(final int fieldNumber, final double value) in writeDouble() argument
122 writeTag(fieldNumber, WireFormatMicro.WIRETYPE_FIXED64); in writeDouble()
127 public void writeFloat(final int fieldNumber, final float value) in writeFloat() argument
129 writeTag(fieldNumber, WireFormatMicro.WIRETYPE_FIXED32); in writeFloat()
134 public void writeUInt64(final int fieldNumber, final long value) in writeUInt64() argument
136 writeTag(fieldNumber, WireFormatMicro.WIRETYPE_VARINT); in writeUInt64()
141 public void writeInt64(final int fieldNumber, final long value) in writeInt64() argument
143 writeTag(fieldNumber, WireFormatMicro.WIRETYPE_VARINT); in writeInt64()
148 public void writeInt32(final int fieldNumber, final int value) in writeInt32() argument
150 writeTag(fieldNumber, WireFormatMicro.WIRETYPE_VARINT); in writeInt32()
[all …]
DWireFormatMicro.java69 static int makeTag(final int fieldNumber, final int wireType) { in makeTag() argument
70 return (fieldNumber << TAG_TYPE_BITS) | wireType; in makeTag()
/external/protobuf/objectivec/
DGPBCodedOutputStream.h82 - (void)writeTag:(uint32_t)fieldNumber format:(GPBWireFormat)format;
114 - (void)writeDouble:(int32_t)fieldNumber value:(double)value;
116 - (void)writeDoubleArray:(int32_t)fieldNumber
123 - (void)writeFloat:(int32_t)fieldNumber value:(float)value;
125 - (void)writeFloatArray:(int32_t)fieldNumber
132 - (void)writeUInt64:(int32_t)fieldNumber value:(uint64_t)value;
134 - (void)writeUInt64Array:(int32_t)fieldNumber
141 - (void)writeInt64:(int32_t)fieldNumber value:(int64_t)value;
143 - (void)writeInt64Array:(int32_t)fieldNumber
150 - (void)writeInt32:(int32_t)fieldNumber value:(int32_t)value;
[all …]
DGPBCodedOutputStream_PackagePrivate.h37 size_t GPBComputeDoubleSize(int32_t fieldNumber, double value)
39 size_t GPBComputeFloatSize(int32_t fieldNumber, float value)
41 size_t GPBComputeUInt64Size(int32_t fieldNumber, uint64_t value)
43 size_t GPBComputeInt64Size(int32_t fieldNumber, int64_t value)
45 size_t GPBComputeInt32Size(int32_t fieldNumber, int32_t value)
47 size_t GPBComputeFixed64Size(int32_t fieldNumber, uint64_t value)
49 size_t GPBComputeFixed32Size(int32_t fieldNumber, uint32_t value)
51 size_t GPBComputeBoolSize(int32_t fieldNumber, BOOL value)
53 size_t GPBComputeStringSize(int32_t fieldNumber, NSString *value)
55 size_t GPBComputeGroupSize(int32_t fieldNumber, GPBMessage *value)
[all …]
DGPBCodedOutputStream.m116 static void GPBWriteUInt32(GPBOutputBufferState *state, int32_t fieldNumber,
118 GPBWriteTagWithFormat(state, fieldNumber, GPBWireFormatVarint);
123 uint32_t fieldNumber, GPBWireFormat format) {
124 GPBWriteRawVarint32(state, GPBWireFormatMakeTag(fieldNumber, format));
210 - (void)writeDouble:(int32_t)fieldNumber value:(double)value {
211 GPBWriteTagWithFormat(&state_, fieldNumber, GPBWireFormatFixed64);
219 - (void)writeFloat:(int32_t)fieldNumber value:(float)value {
220 GPBWriteTagWithFormat(&state_, fieldNumber, GPBWireFormatFixed32);
228 - (void)writeUInt64:(int32_t)fieldNumber value:(uint64_t)value {
229 GPBWriteTagWithFormat(&state_, fieldNumber, GPBWireFormatVarint);
[all …]
DGPBExtensionInternals.m99 return GPBCompute##TYPE##Size(description->fieldNumber, \
103 return GPBCompute##TYPE##Size(description->fieldNumber, object);
124 return GPBComputeMessageSetExtensionSize(description->fieldNumber,
127 return GPBComputeMessageSize(description->fieldNumber, object);
147 return size + GPBComputeTagSize(description->fieldNumber) +
163 [output write##TYPE:description->fieldNumber \
168 [output write##TYPE:description->fieldNumber value:object]; \
190 [output writeMessageSetExtension:description->fieldNumber value:object];
192 [output writeMessage:description->fieldNumber value:object];
230 [output writeGroupNoTag:description->fieldNumber value:object];
[all …]
DGPBExtensionRegistry.h78 fieldNumber:(NSInteger)fieldNumber;
DGPBExtensionRegistry.m82 [extensionMap setObject:extension forKey:@(extension.fieldNumber)];
86 fieldNumber:(NSInteger)fieldNumber {
90 return [extensionMap objectForKey:@(fieldNumber)];
DGPBMessage.m1265 uint32_t fieldNumber = GPBFieldNumber(field);
1275 //% [output write##TYPE##Array:fieldNumber values:array tag:tag];
1277 //% [output write##TYPE:fieldNumber
1291 //% [output write##TYPE##Array:fieldNumber values:array];
1295 //% [output write##TYPE:fieldNumber
1320 [output writeBoolArray:fieldNumber values:array tag:tag];
1322 [output writeBool:fieldNumber
1340 [output writeFixed32Array:fieldNumber values:array tag:tag];
1342 [output writeFixed32:fieldNumber
1360 [output writeSFixed32Array:fieldNumber values:array tag:tag];
[all …]
DGPBDescriptor.h66 - (nullable GPBFieldDescriptor *)fieldWithNumber:(uint32_t)fieldNumber;
83 - (nullable GPBFieldDescriptor *)fieldWithNumber:(uint32_t)fieldNumber;
130 @property(nonatomic, readonly) uint32_t fieldNumber;
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DCodedOutputStream.java191 public abstract void writeTag(int fieldNumber, int wireType) throws IOException; in writeTag() argument
195 public abstract void writeInt32(int fieldNumber, int value) throws IOException; in writeInt32() argument
199 public abstract void writeUInt32(int fieldNumber, int value) throws IOException; in writeUInt32() argument
202 public final void writeSInt32(final int fieldNumber, final int value) throws IOException { in writeSInt32() argument
203 writeUInt32(fieldNumber, encodeZigZag32(value)); in writeSInt32()
208 public abstract void writeFixed32(int fieldNumber, int value) throws IOException; in writeFixed32() argument
211 public final void writeSFixed32(final int fieldNumber, final int value) throws IOException { in writeSFixed32() argument
212 writeFixed32(fieldNumber, value); in writeSFixed32()
216 public final void writeInt64(final int fieldNumber, final long value) throws IOException { in writeInt64() argument
217 writeUInt64(fieldNumber, value); in writeInt64()
[all …]
DUnknownFieldSetLite.java153 int fieldNumber = WireFormat.getTagFieldNumber(tag); in writeTo() local
156 output.writeUInt64(fieldNumber, (Long) objects[i]); in writeTo()
159 output.writeFixed32(fieldNumber, (Integer) objects[i]); in writeTo()
162 output.writeFixed64(fieldNumber, (Long) objects[i]); in writeTo()
165 output.writeBytes(fieldNumber, (ByteString) objects[i]); in writeTo()
168 output.writeTag(fieldNumber, WireFormat.WIRETYPE_START_GROUP); in writeTo()
170 output.writeTag(fieldNumber, WireFormat.WIRETYPE_END_GROUP); in writeTo()
192 int fieldNumber = WireFormat.getTagFieldNumber(tag); in getSerializedSize() local
195 size += CodedOutputStream.computeUInt64Size(fieldNumber, (Long) objects[i]); in getSerializedSize()
198 size += CodedOutputStream.computeFixed32Size(fieldNumber, (Integer) objects[i]); in getSerializedSize()
[all …]
DUnknownFieldSet.java786 public void writeTo(final int fieldNumber, final CodedOutputStream output) in writeTo() argument
789 output.writeUInt64(fieldNumber, value); in writeTo()
792 output.writeFixed32(fieldNumber, value); in writeTo()
795 output.writeFixed64(fieldNumber, value); in writeTo()
798 output.writeBytes(fieldNumber, value); in writeTo()
801 output.writeGroup(fieldNumber, value); in writeTo()
809 public int getSerializedSize(final int fieldNumber) { in getSerializedSize() argument
812 result += CodedOutputStream.computeUInt64Size(fieldNumber, value); in getSerializedSize()
815 result += CodedOutputStream.computeFixed32Size(fieldNumber, value); in getSerializedSize()
818 result += CodedOutputStream.computeFixed64Size(fieldNumber, value); in getSerializedSize()
[all …]
DExtensionRegistry.java172 final Descriptor containingType, final int fieldNumber) { in findExtensionByNumber() argument
173 return findImmutableExtensionByNumber(containingType, fieldNumber); in findExtensionByNumber()
183 final Descriptor containingType, final int fieldNumber) { in findImmutableExtensionByNumber() argument
185 new DescriptorIntPair(containingType, fieldNumber)); in findImmutableExtensionByNumber()
195 final Descriptor containingType, final int fieldNumber) { in findMutableExtensionByNumber() argument
197 new DescriptorIntPair(containingType, fieldNumber)); in findMutableExtensionByNumber()
DMessageReflection.java245 int fieldNumber); in findExtensionByNumber() argument
447 ExtensionRegistry registry, Descriptors.Descriptor containingType, int fieldNumber) { in findExtensionByNumber() argument
449 fieldNumber); in findExtensionByNumber()
634 ExtensionRegistry registry, Descriptors.Descriptor containingType, int fieldNumber) { in findExtensionByNumber() argument
636 fieldNumber); in findExtensionByNumber()
743 final int fieldNumber = WireFormat.getTagFieldNumber(tag); in mergeFieldFrom() local
748 if (type.isExtensionNumber(fieldNumber)) { in mergeFieldFrom()
757 type, fieldNumber); in mergeFieldFrom()
775 field = type.findFieldByNumber(fieldNumber); in mergeFieldFrom()
850 unknownFields.mergeVarintField(fieldNumber, rawValue); in mergeFieldFrom()
/external/protobuf/javanano/src/main/java/com/google/protobuf/nano/
DCodedOutputByteBufferNano.java93 public void writeDouble(final int fieldNumber, final double value) in writeDouble() argument
95 writeTag(fieldNumber, WireFormatNano.WIRETYPE_FIXED64); in writeDouble()
100 public void writeFloat(final int fieldNumber, final float value) in writeFloat() argument
102 writeTag(fieldNumber, WireFormatNano.WIRETYPE_FIXED32); in writeFloat()
107 public void writeUInt64(final int fieldNumber, final long value) in writeUInt64() argument
109 writeTag(fieldNumber, WireFormatNano.WIRETYPE_VARINT); in writeUInt64()
114 public void writeInt64(final int fieldNumber, final long value) in writeInt64() argument
116 writeTag(fieldNumber, WireFormatNano.WIRETYPE_VARINT); in writeInt64()
121 public void writeInt32(final int fieldNumber, final int value) in writeInt32() argument
123 writeTag(fieldNumber, WireFormatNano.WIRETYPE_VARINT); in writeInt32()
[all …]
DFieldArray.java74 FieldData get(int fieldNumber) { in get() argument
75 int i = binarySearch(fieldNumber); in get()
87 void remove(int fieldNumber) { in remove() argument
88 int i = binarySearch(fieldNumber); in remove()
124 void put(int fieldNumber, FieldData data) { in put() argument
125 int i = binarySearch(fieldNumber); in put()
133 mFieldNumbers[i] = fieldNumber; in put()
142 i = ~ binarySearch(fieldNumber); in put()
163 mFieldNumbers[i] = fieldNumber; in put()
DExtension.java267 int fieldNumber = WireFormatNano.getTagFieldNumber(tag); in writeSingularData() local
270 out.writeTag(fieldNumber, WireFormatNano.WIRETYPE_END_GROUP); in writeSingularData()
319 int fieldNumber = WireFormatNano.getTagFieldNumber(tag); in computeSingularSerializedSize() local
323 return CodedOutputByteBufferNano.computeGroupSize(fieldNumber, groupValue); in computeSingularSerializedSize()
326 return CodedOutputByteBufferNano.computeMessageSize(fieldNumber, messageValue); in computeSingularSerializedSize()
649 int fieldNumber = WireFormatNano.getTagFieldNumber(tag); in computeSingularSerializedSize() local
653 return CodedOutputByteBufferNano.computeDoubleSize(fieldNumber, doubleValue); in computeSingularSerializedSize()
656 return CodedOutputByteBufferNano.computeFloatSize(fieldNumber, floatValue); in computeSingularSerializedSize()
659 return CodedOutputByteBufferNano.computeInt64Size(fieldNumber, int64Value); in computeSingularSerializedSize()
662 return CodedOutputByteBufferNano.computeUInt64Size(fieldNumber, uint64Value); in computeSingularSerializedSize()
[all …]
DExtendableMessageNano.java97 int fieldNumber = WireFormatNano.getTagFieldNumber(extension.tag); in setExtension() local
100 unknownFieldData.remove(fieldNumber); in setExtension()
110 field = unknownFieldData.get(fieldNumber); in setExtension()
113 unknownFieldData.put(fieldNumber, new FieldData(extension, value)); in setExtension()
144 int fieldNumber = WireFormatNano.getTagFieldNumber(tag); in storeUnknownField() local
153 field = unknownFieldData.get(fieldNumber); in storeUnknownField()
157 unknownFieldData.put(fieldNumber, field); in storeUnknownField()
DWireFormatNano.java71 static int makeTag(final int fieldNumber, final int wireType) { in makeTag() argument
72 return (fieldNumber << TAG_TYPE_BITS) | wireType; in makeTag()
/external/protobuf/js/
Dmessage.js95 jspb.ExtensionFieldInfo = function(fieldNumber, fieldName, ctor, toObjectFn, argument
100 this.fieldIndex = fieldNumber;
278 jspb.Message.getIndex_ = function(msg, fieldNumber) { argument
279 return fieldNumber + msg.arrayIndexOffset_;
315 var fieldNumber = repeatedFields[i];
316 if (fieldNumber < msg.pivot_) {
317 var index = jspb.Message.getIndex_(msg, fieldNumber);
323 msg.extensionObject_[fieldNumber] =
324 msg.extensionObject_[fieldNumber] ||
456 for (var fieldNumber in extensions) {
[all …]
/external/cldr/tools/java/org/unicode/cldr/util/
DTabber.java103 public int getStop(int fieldNumber) { in getStop() argument
104 if (fieldNumber < 0) return 0; in getStop()
105 if (fieldNumber >= stops.size()) fieldNumber = stops.size() - 1; in getStop()
106 return ((Integer) stops.get(fieldNumber)).intValue(); in getStop()
109 public int getType(int fieldNumber) { in getType() argument
110 if (fieldNumber < 0) return LEFT; in getType()
111 if (fieldNumber >= stops.size()) return LEFT; in getType()
112 return ((Integer) types.get(fieldNumber)).intValue(); in getType()
/external/protobuf/csharp/src/Google.Protobuf/Reflection/
DOneofAccessor.cs82 int fieldNumber = caseDelegate(message); in GetCaseFieldDescriptor()
83 if (fieldNumber > 0) in GetCaseFieldDescriptor()
85 return descriptor.ContainingType.FindFieldByNumber(fieldNumber); in GetCaseFieldDescriptor()
/external/protobuf/csharp/src/Google.Protobuf/
DWireFormat.cs99 public static uint MakeTag(int fieldNumber, WireType wireType) in MakeTag() argument
101 return (uint) (fieldNumber << TagTypeBits) | (uint) wireType; in MakeTag()
DCodedOutputStream.ComputeSize.cs299 public static int ComputeTagSize(int fieldNumber) in ComputeTagSize() argument
301 return ComputeRawVarint32Size(WireFormat.MakeTag(fieldNumber, 0)); in ComputeTagSize()

12