Home
last modified time | relevance | path

Searched refs:CodedOutputStream (Results 1 – 25 of 281) sorted by relevance

12345678910>>...12

/external/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DCodedOutputStreamTest.java85 CodedOutputStream output = CodedOutputStream.newInstance(rawOutput); in assertWriteVarint()
92 CodedOutputStream.computeRawVarint32Size((int) value)); in assertWriteVarint()
97 CodedOutputStream output = CodedOutputStream.newInstance(rawOutput); in assertWriteVarint()
104 CodedOutputStream.computeRawVarint64Size(value)); in assertWriteVarint()
112 CodedOutputStream output = in assertWriteVarint()
113 CodedOutputStream.newInstance(rawOutput, blockSize); in assertWriteVarint()
121 CodedOutputStream output = in assertWriteVarint()
122 CodedOutputStream.newInstance(rawOutput, blockSize); in assertWriteVarint()
167 CodedOutputStream output = CodedOutputStream.newInstance(rawOutput); in assertWriteLittleEndian32()
175 output = CodedOutputStream.newInstance(rawOutput, blockSize); in assertWriteLittleEndian32()
[all …]
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/
DCodedOutputStreamTest.cs52 CodedOutputStream output = new CodedOutputStream(rawOutput); in AssertWriteVarint()
57 … Assert.AreEqual(data.Length, CodedOutputStream.ComputeRawVarint32Size((uint) value)); in AssertWriteVarint()
62 CodedOutputStream output = new CodedOutputStream(rawOutput); in AssertWriteVarint()
68 Assert.AreEqual(data.Length, CodedOutputStream.ComputeRawVarint64Size(value)); in AssertWriteVarint()
78 CodedOutputStream output = in AssertWriteVarint()
79 new CodedOutputStream(rawOutput, bufferSize); in AssertWriteVarint()
87 CodedOutputStream output = new CodedOutputStream(rawOutput, bufferSize); in AssertWriteVarint()
137 CodedOutputStream output = new CodedOutputStream(rawOutput); in AssertWriteLittleEndian32()
146 output = new CodedOutputStream(rawOutput, bufferSize); in AssertWriteLittleEndian32()
160 CodedOutputStream output = new CodedOutputStream(rawOutput); in AssertWriteLittleEndian64()
[all …]
/external/protobuf/csharp/src/Google.Protobuf.Test/
DCodedOutputStreamTest.cs52 CodedOutputStream output = new CodedOutputStream(rawOutput); in AssertWriteVarint()
57 … Assert.AreEqual(data.Length, CodedOutputStream.ComputeRawVarint32Size((uint) value)); in AssertWriteVarint()
62 CodedOutputStream output = new CodedOutputStream(rawOutput); in AssertWriteVarint()
68 Assert.AreEqual(data.Length, CodedOutputStream.ComputeRawVarint64Size(value)); in AssertWriteVarint()
78 CodedOutputStream output = in AssertWriteVarint()
79 new CodedOutputStream(rawOutput, bufferSize); in AssertWriteVarint()
87 CodedOutputStream output = new CodedOutputStream(rawOutput, bufferSize); in AssertWriteVarint()
137 CodedOutputStream output = new CodedOutputStream(rawOutput); in AssertWriteLittleEndian32()
146 output = new CodedOutputStream(rawOutput, bufferSize); in AssertWriteLittleEndian32()
160 CodedOutputStream output = new CodedOutputStream(rawOutput); in AssertWriteLittleEndian64()
[all …]
DFieldCodecTest.cs126 var codedOutput = new CodedOutputStream(stream); in TestRoundTripRaw()
138 var codedOutput = new CodedOutputStream(stream); in TestRoundTripWithTag()
151 var codedOutput = new CodedOutputStream(stream); in TestCalculateSizeWithTag()
161 CodedOutputStream codedOutput; in TestDefaultValue()
163 codedOutput = new CodedOutputStream(stream); in TestDefaultValue()
177 codedOutput = new CodedOutputStream(stream); in TestDefaultValue()
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DCodedOutputStreamTest.java33 import com.google.protobuf.CodedOutputStream.OutOfSpaceException;
53 CodedOutputStream stream(); in stream()
61 private final CodedOutputStream stream;
66 stream = CodedOutputStream.newInstance(output, size); in OutputStreamCoder()
70 public CodedOutputStream stream() { in stream()
86 private final CodedOutputStream stream;
91 stream = CodedOutputStream.newInstance(bytes); in ArrayCoder()
95 public CodedOutputStream stream() { in stream()
111 private final CodedOutputStream stream;
123 stream = CodedOutputStream.newInstance(buffer); in NioHeapCoder()
[all …]
DProto2ExtensionLookupSchemaTest.java105 CodedOutputStream.computeUInt32SizeNoTag(TestEnum.ONE_VALUE) in testUnknownEnum()
106 + CodedOutputStream.computeUInt32SizeNoTag(outOfRange) in testUnknownEnum()
107 + CodedOutputStream.computeUInt32SizeNoTag(TestEnum.ONE_VALUE); in testUnknownEnum()
109 CodedOutputStream packedOut = packedBuilder.getCodedOutput(); in testUnknownEnum()
121 CodedOutputStream codedOutput = CodedOutputStream.newInstance(output); in testUnknownEnum()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DSchemaUtil.java342 size += CodedOutputStream.computeInt64SizeNoTag(primitiveList.getLong(i)); in computeSizeInt64ListNoTag()
346 size += CodedOutputStream.computeInt64SizeNoTag(list.get(i)); in computeSizeInt64ListNoTag()
360 return CodedOutputStream.computeTagSize(fieldNumber) in computeSizeInt64List()
361 + CodedOutputStream.computeLengthDelimitedFieldSize(size); in computeSizeInt64List()
363 return size + (list.size() * CodedOutputStream.computeTagSize(fieldNumber)); in computeSizeInt64List()
378 size += CodedOutputStream.computeUInt64SizeNoTag(primitiveList.getLong(i)); in computeSizeUInt64ListNoTag()
382 size += CodedOutputStream.computeUInt64SizeNoTag(list.get(i)); in computeSizeUInt64ListNoTag()
396 return CodedOutputStream.computeTagSize(fieldNumber) in computeSizeUInt64List()
397 + CodedOutputStream.computeLengthDelimitedFieldSize(size); in computeSizeUInt64List()
399 return size + (length * CodedOutputStream.computeTagSize(fieldNumber)); in computeSizeUInt64List()
[all …]
DFieldSet.java568 public void writeTo(final CodedOutputStream output) throws IOException { in writeTo()
579 public void writeMessageSetTo(final CodedOutputStream output) throws IOException { in writeMessageSetTo()
589 final Map.Entry<FieldDescriptorType, Object> entry, final CodedOutputStream output) in writeMessageSetTo()
615 final CodedOutputStream output, in writeElement()
639 final CodedOutputStream output, final WireFormat.FieldType type, final Object value) in writeElementNoTag()
714 final FieldDescriptorLite<?> descriptor, final Object value, final CodedOutputStream output) in writeField()
781 return CodedOutputStream.computeLazyFieldMessageSetExtensionSize( in getMessageSetSerializedSize()
784 return CodedOutputStream.computeMessageSetExtensionSize( in getMessageSetSerializedSize()
803 int tagSize = CodedOutputStream.computeTagSize(number); in computeElementSize()
825 return CodedOutputStream.computeDoubleSizeNoTag((Double) value); in computeElementSizeNoTag()
[all …]
DMessageSchema.java1447 size += CodedOutputStream.computeDoubleSize(number, 0); in getSerializedSizeProto2()
1452 size += CodedOutputStream.computeFloatSize(number, 0); in getSerializedSizeProto2()
1457 size += CodedOutputStream.computeInt64Size(number, unsafe.getLong(message, offset)); in getSerializedSizeProto2()
1462 size += CodedOutputStream.computeUInt64Size(number, unsafe.getLong(message, offset)); in getSerializedSizeProto2()
1467 size += CodedOutputStream.computeInt32Size(number, unsafe.getInt(message, offset)); in getSerializedSizeProto2()
1472 size += CodedOutputStream.computeFixed64Size(number, 0); in getSerializedSizeProto2()
1477 size += CodedOutputStream.computeFixed32Size(number, 0); in getSerializedSizeProto2()
1482 size += CodedOutputStream.computeBoolSize(number, true); in getSerializedSizeProto2()
1489 size += CodedOutputStream.computeBytesSize(number, (ByteString) value); in getSerializedSizeProto2()
1491 size += CodedOutputStream.computeStringSize(number, (String) value); in getSerializedSizeProto2()
[all …]
DAbstractMessageLite.java70 final CodedOutputStream output = CodedOutputStream.newInstance(result); in toByteArray()
81 final int bufferSize = CodedOutputStream.computePreferredBufferSize(getSerializedSize()); in writeTo()
82 final CodedOutputStream codedOutput = CodedOutputStream.newInstance(output, bufferSize); in writeTo()
91 CodedOutputStream.computePreferredBufferSize( in writeDelimitedTo()
92 CodedOutputStream.computeRawVarint32Size(serialized) + serialized); in writeDelimitedTo()
93 final CodedOutputStream codedOutput = CodedOutputStream.newInstance(output, bufferSize); in writeDelimitedTo()
/external/protobuf/src/google/protobuf/
Dwire_format_lite.h186 io::CodedOutputStream* output);
196 io::CodedOutputStream* output);
306 io::CodedOutputStream* unknown_fields_stream, RepeatedField<int>* values);
349 io::CodedOutputStream* output);
353 int32 value, io::CodedOutputStream* output);
355 int64 value, io::CodedOutputStream* output);
357 uint32 value, io::CodedOutputStream* output);
359 uint64 value, io::CodedOutputStream* output);
361 int32 value, io::CodedOutputStream* output);
363 int64 value, io::CodedOutputStream* output);
[all …]
Dwire_format_lite.cc65 io::CodedOutputStream::StaticVarintSize32<
67 io::CodedOutputStream::StaticVarintSize32<
69 io::CodedOutputStream::StaticVarintSize32<
71 io::CodedOutputStream::StaticVarintSize32<
168 io::CodedOutputStream* output) { in SkipField()
246 io::CodedOutputStream* output) { in SkipMessage()
295 io::CodedOutputStream* unknown_fields_stream, RepeatedField<int>* values) { in ReadPackedEnumPreserveUnknowns()
352 static void WriteArray(const CType* a, int n, io::CodedOutputStream* output) { in WriteArray()
371 io::CodedOutputStream* output) { in WriteFloatArray()
376 io::CodedOutputStream* output) { in WriteDoubleArray()
[all …]
Dwire_format.h59 class CodedOutputStream; // coded_stream.h variable
119 io::CodedOutputStream* output);
153 io::CodedOutputStream* output);
165 const UnknownFieldSet& unknown_fields, io::CodedOutputStream* output);
199 const Message& message, io::CodedOutputStream* output);
213 io::CodedOutputStream* output);
332 const UnknownFieldSet& unknown_fields, io::CodedOutputStream* output) { in SerializeUnknownMessageSetItems()
Dgenerated_message_util.cc112 static void Serialize(const void* ptr, io::CodedOutputStream* output) { in Serialize()
123 static void Serialize(const void* ptr, io::CodedOutputStream* output) { in Serialize()
134 static void Serialize(const void* ptr, io::CodedOutputStream* output) { in Serialize()
145 static void Serialize(const void* ptr, io::CodedOutputStream* output) { in Serialize()
155 static void Serialize(const void* ptr, io::CodedOutputStream* output) { in Serialize()
166 static void Serialize(const void* ptr, io::CodedOutputStream* output) { in Serialize()
176 static void Serialize(const void* ptr, io::CodedOutputStream* output) { in Serialize()
187 static void Serialize(const void* ptr, io::CodedOutputStream* output) { in Serialize()
198 static void Serialize(const void* ptr, io::CodedOutputStream* output) { in Serialize()
234 static void Serialize(const void* ptr, io::CodedOutputStream* output) { in Serialize()
[all …]
/external/protobuf/csharp/src/Google.Protobuf/
DFieldCodec.cs221 …> input.ReadString(), (output, value) => output.WriteString(value), CodedOutputStream.ComputeStrin… in ForString()
232 … => input.ReadBytes(), (output, value) => output.WriteBytes(value), CodedOutputStream.ComputeBytes… in ForBytes()
243 …ut => input.ReadBool(), (output, value) => output.WriteBool(value), CodedOutputStream.BoolSize, ta… in ForBool()
254 … => input.ReadInt32(), (output, value) => output.WriteInt32(value), CodedOutputStream.ComputeInt32… in ForInt32()
265 …> input.ReadSInt32(), (output, value) => output.WriteSInt32(value), CodedOutputStream.ComputeSInt3… in ForSInt32()
298 …> input.ReadUInt32(), (output, value) => output.WriteUInt32(value), CodedOutputStream.ComputeUInt3… in ForUInt32()
309 … => input.ReadInt64(), (output, value) => output.WriteInt64(value), CodedOutputStream.ComputeInt64… in ForInt64()
320 …> input.ReadSInt64(), (output, value) => output.WriteSInt64(value), CodedOutputStream.ComputeSInt6… in ForSInt64()
353 …> input.ReadUInt64(), (output, value) => output.WriteUInt64(value), CodedOutputStream.ComputeUInt6… in ForUInt64()
364 … => input.ReadFloat(), (output, value) => output.WriteFloat(value), CodedOutputStream.FloatSize, t… in ForFloat()
[all …]
DUnknownField.cs105 internal void WriteTo(int fieldNumber, CodedOutputStream output) in WriteTo()
159 result += CodedOutputStream.ComputeTagSize(fieldNumber) * varintList.Count; in GetSerializedSize()
162 result += CodedOutputStream.ComputeUInt64Size(value); in GetSerializedSize()
167 result += CodedOutputStream.ComputeTagSize(fieldNumber) * fixed32List.Count; in GetSerializedSize()
168 result += CodedOutputStream.ComputeFixed32Size(1) * fixed32List.Count; in GetSerializedSize()
172 result += CodedOutputStream.ComputeTagSize(fieldNumber) * fixed64List.Count; in GetSerializedSize()
173 result += CodedOutputStream.ComputeFixed64Size(1) * fixed64List.Count; in GetSerializedSize()
177 result += CodedOutputStream.ComputeTagSize(fieldNumber) * lengthDelimitedList.Count; in GetSerializedSize()
180 result += CodedOutputStream.ComputeBytesSize(value); in GetSerializedSize()
185 result += CodedOutputStream.ComputeTagSize(fieldNumber) * 2 * groupList.Count; in GetSerializedSize()
DCodedOutputStream.cs58 public sealed partial class CodedOutputStream : IDisposable class
80 public CodedOutputStream(byte[] flatArray) : this(flatArray, 0, flatArray.Length) in CodedOutputStream() method in Google.Protobuf.CodedOutputStream
89 private CodedOutputStream(byte[] buffer, int offset, int length) in CodedOutputStream() method in Google.Protobuf.CodedOutputStream
98 private CodedOutputStream(Stream output, byte[] buffer, bool leaveOpen) in CodedOutputStream() method in Google.Protobuf.CodedOutputStream
112 public CodedOutputStream(Stream output) : this(output, DefaultBufferSize, false) in CodedOutputStream() method in Google.Protobuf.CodedOutputStream
122 …public CodedOutputStream(Stream output, int bufferSize) : this(output, new byte[bufferSize], false) in CodedOutputStream() method in Google.Protobuf.CodedOutputStream
132 …public CodedOutputStream(Stream output, bool leaveOpen) : this(output, DefaultBufferSize, leaveOpe… in CodedOutputStream() method in Google.Protobuf.CodedOutputStream
144 …public CodedOutputStream(Stream output, int bufferSize, bool leaveOpen) : this(output, new byte[bu… in CodedOutputStream() method in Google.Protobuf.CodedOutputStream
/external/protobuf/src/google/protobuf/io/
Dcoded_stream.h158 class CodedOutputStream; variable
693 class PROTOBUF_EXPORT CodedOutputStream {
696 explicit CodedOutputStream(ZeroCopyOutputStream* output);
697 CodedOutputStream(ZeroCopyOutputStream* output, bool do_eager_refresh);
701 ~CodedOutputStream();
872 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(CodedOutputStream);
1143 inline uint8* CodedOutputStream::GetDirectBufferForNBytesAndAdvance(int size) { in GetDirectBufferForNBytesAndAdvance()
1153 inline uint8* CodedOutputStream::WriteVarint32ToArray(uint32 value, in WriteVarint32ToArray()
1164 inline uint8* CodedOutputStream::WriteVarint64ToArray(uint64 value, in WriteVarint64ToArray()
1175 inline void CodedOutputStream::WriteVarint32SignExtended(int32 value) { in WriteVarint32SignExtended()
[all …]
Dcoded_stream.cc87 void CodedOutputStream::EnableAliasing(bool enabled) { in EnableAliasing()
640 std::atomic<bool> CodedOutputStream::default_serialization_deterministic_{
643 CodedOutputStream::CodedOutputStream(ZeroCopyOutputStream* output) in CodedOutputStream() function in google::protobuf::io::CodedOutputStream
644 : CodedOutputStream(output, true) {} in CodedOutputStream()
646 CodedOutputStream::CodedOutputStream(ZeroCopyOutputStream* output, in CodedOutputStream() function in google::protobuf::io::CodedOutputStream
665 CodedOutputStream::~CodedOutputStream() { Trim(); } in ~CodedOutputStream()
667 void CodedOutputStream::Trim() { in Trim()
676 bool CodedOutputStream::Skip(int count) { in Skip()
688 bool CodedOutputStream::GetDirectBufferPointer(void** data, int* size) { in GetDirectBufferPointer()
696 void CodedOutputStream::WriteRaw(const void* data, int size) { in WriteRaw()
[all …]
/external/protobuf/csharp/src/Google.Protobuf.Benchmarks/
DBenchmarkMessage1Proto3.cs704 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
875 size += 1 + pb::CodedOutputStream.ComputeStringSize(Field1); in CalculateSize()
878 size += 1 + pb::CodedOutputStream.ComputeStringSize(Field9); in CalculateSize()
881 size += 2 + pb::CodedOutputStream.ComputeStringSize(Field18); in CalculateSize()
890 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field2); in CalculateSize()
893 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field3); in CalculateSize()
896 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Field280); in CalculateSize()
899 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field6); in CalculateSize()
902 size += 2 + pb::CodedOutputStream.ComputeInt64Size(Field22); in CalculateSize()
905 size += 1 + pb::CodedOutputStream.ComputeStringSize(Field4); in CalculateSize()
[all …]
/external/protobuf/src/google/protobuf/util/internal/
Dproto_writer.cc55 using io::CodedOutputStream;
78 stream_(new CodedOutputStream(&adapter_)), in ProtoWriter()
99 stream_(new CodedOutputStream(&adapter_)), in ProtoWriter()
124 CodedOutputStream* stream) { in WriteInt32()
134 CodedOutputStream* stream) { in WriteSFixed32()
144 CodedOutputStream* stream) { in WriteSInt32()
154 CodedOutputStream* stream) { in WriteFixed32()
164 CodedOutputStream* stream) { in WriteUInt32()
174 CodedOutputStream* stream) { in WriteInt64()
184 CodedOutputStream* stream) { in WriteSFixed64()
[all …]
/external/grpc-grpc-java/services/src/generated/main/java/io/grpc/channelz/v1/
DSocketOptionTcpInfo.java526 public void writeTo(com.google.protobuf.CodedOutputStream output) in writeTo()
624 size += com.google.protobuf.CodedOutputStream in getSerializedSize()
628 size += com.google.protobuf.CodedOutputStream in getSerializedSize()
632 size += com.google.protobuf.CodedOutputStream in getSerializedSize()
636 size += com.google.protobuf.CodedOutputStream in getSerializedSize()
640 size += com.google.protobuf.CodedOutputStream in getSerializedSize()
644 size += com.google.protobuf.CodedOutputStream in getSerializedSize()
648 size += com.google.protobuf.CodedOutputStream in getSerializedSize()
652 size += com.google.protobuf.CodedOutputStream in getSerializedSize()
656 size += com.google.protobuf.CodedOutputStream in getSerializedSize()
[all …]
/external/grpc-grpc/src/csharp/Grpc.IntegrationTesting/
DEchoMessages.cs157 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
173 size += 1 + pb::CodedOutputStream.ComputeStringSize(Detail); in CalculateSize()
324 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
346 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Code); in CalculateSize()
349 size += 1 + pb::CodedOutputStream.ComputeStringSize(ErrorMessage); in CalculateSize()
352 size += 1 + pb::CodedOutputStream.ComputeStringSize(BinaryErrorDetails); in CalculateSize()
703 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
780 size += 1 + pb::CodedOutputStream.ComputeInt32Size(ClientCancelAfterUs); in CalculateSize()
783 size += 1 + pb::CodedOutputStream.ComputeInt32Size(ServerCancelAfterUs); in CalculateSize()
792 size += 1 + pb::CodedOutputStream.ComputeInt32Size(ResponseMessageLength); in CalculateSize()
[all …]
/external/grpc-grpc/examples/csharp/RouteGuide/RouteGuide/
DRouteGuide.cs155 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
173 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Latitude); in CalculateSize()
176 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Longitude); in CalculateSize()
322 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
340 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Lo); in CalculateSize()
343 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Hi); in CalculateSize()
502 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
520 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); in CalculateSize()
523 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location); in CalculateSize()
674 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
[all …]
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Collections/
DRepeatedFieldTest.cs311 var output = new CodedOutputStream(stream); in AddEntriesFrom_PackedInt32()
312 var length = CodedOutputStream.ComputeInt32Size(10) in AddEntriesFrom_PackedInt32()
313 + CodedOutputStream.ComputeInt32Size(999) in AddEntriesFrom_PackedInt32()
314 + CodedOutputStream.ComputeInt32Size(-1000); in AddEntriesFrom_PackedInt32()
339 var output = new CodedOutputStream(stream); in AddEntriesFrom_NonPackedInt32()
365 var output = new CodedOutputStream(stream); in AddEntriesFrom_String()
391 var output = new CodedOutputStream(stream); in AddEntriesFrom_Message()
413 var output = new CodedOutputStream(stream); in WriteTo_PackedInt32()
425 … Assert.AreEqual(1 + CodedOutputStream.ComputeLengthSize(length) + length, stream.Length); in WriteTo_PackedInt32()
434 var output = new CodedOutputStream(stream); in WriteTo_NonPackedInt32()
[all …]

12345678910>>...12