Home
last modified time | relevance | path

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

12345678910

/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 …]
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DCodedOutputStreamTest.java33 import com.google.protobuf.CodedOutputStream.OutOfSpaceException;
55 CodedOutputStream stream(); in stream()
63 private final CodedOutputStream stream;
68 stream = CodedOutputStream.newInstance(output, size); in OutputStreamCoder()
72 public CodedOutputStream stream() { in stream()
88 private final CodedOutputStream stream;
93 stream = CodedOutputStream.newInstance(bytes); in ArrayCoder()
97 public CodedOutputStream stream() { in stream()
113 private final CodedOutputStream stream;
125 stream = CodedOutputStream.newInstance(buffer); in NioHeapCoder()
[all …]
/external/protobuf/src/google/protobuf/
Dwire_format_lite.cc65 io::CodedOutputStream::StaticVarintSize32<
67 io::CodedOutputStream::StaticVarintSize32<
69 io::CodedOutputStream::StaticVarintSize32<
71 io::CodedOutputStream::StaticVarintSize32<
167 io::CodedInputStream* input, uint32 tag, io::CodedOutputStream* output) { in SkipField()
243 io::CodedOutputStream* output) { in SkipMessage()
316 io::CodedOutputStream* unknown_fields_stream, in ReadPackedEnumPreserveUnknowns()
341 io::CodedOutputStream* output) { in WriteInt32()
346 io::CodedOutputStream* output) { in WriteInt64()
351 io::CodedOutputStream* output) { in WriteUInt32()
[all …]
Dwire_format_lite_inl.h518 io::CodedOutputStream* output) { in WriteTag()
523 io::CodedOutputStream* output) { in WriteInt32NoTag()
527 io::CodedOutputStream* output) { in WriteInt64NoTag()
531 io::CodedOutputStream* output) { in WriteUInt32NoTag()
535 io::CodedOutputStream* output) { in WriteUInt64NoTag()
539 io::CodedOutputStream* output) { in WriteSInt32NoTag()
543 io::CodedOutputStream* output) { in WriteSInt64NoTag()
547 io::CodedOutputStream* output) { in WriteFixed32NoTag()
551 io::CodedOutputStream* output) { in WriteFixed64NoTag()
555 io::CodedOutputStream* output) { in WriteSFixed32NoTag()
[all …]
Dwire_format.cc180 io::CodedOutputStream* output) { in SerializeUnknownFields()
254 io::CodedOutputStream* output) { in SerializeUnknownMessageSetItems()
287 target = io::CodedOutputStream::WriteTagToArray( in SerializeUnknownMessageSetItemsToArray()
291 target = io::CodedOutputStream::WriteTagToArray( in SerializeUnknownMessageSetItemsToArray()
293 target = io::CodedOutputStream::WriteVarint32ToArray( in SerializeUnknownMessageSetItemsToArray()
297 target = io::CodedOutputStream::WriteTagToArray( in SerializeUnknownMessageSetItemsToArray()
302 target = io::CodedOutputStream::WriteTagToArray( in SerializeUnknownMessageSetItemsToArray()
318 size += io::CodedOutputStream::VarintSize32( in ComputeUnknownFieldsSize()
321 size += io::CodedOutputStream::VarintSize64(field.varint()); in ComputeUnknownFieldsSize()
324 size += io::CodedOutputStream::VarintSize32( in ComputeUnknownFieldsSize()
[all …]
Dwire_format.h58 class CodedOutputStream; // coded_stream.h variable
118 int size, io::CodedOutputStream* output);
151 io::CodedOutputStream* output);
165 io::CodedOutputStream* output);
203 io::CodedOutputStream* output);
220 io::CodedOutputStream* output);
/external/protobuf/csharp/src/Google.Protobuf/
DFieldCodec.cs54 …> input.ReadString(), (output, value) => output.WriteString(value), CodedOutputStream.ComputeStrin… in ForString()
64 … => input.ReadBytes(), (output, value) => output.WriteBytes(value), CodedOutputStream.ComputeBytes… in ForBytes()
74 …ut => input.ReadBool(), (output, value) => output.WriteBool(value), CodedOutputStream.ComputeBoolS… in ForBool()
84 … => input.ReadInt32(), (output, value) => output.WriteInt32(value), CodedOutputStream.ComputeInt32… in ForInt32()
94 …> input.ReadSInt32(), (output, value) => output.WriteSInt32(value), CodedOutputStream.ComputeSInt3… in ForSInt32()
124 …> input.ReadUInt32(), (output, value) => output.WriteUInt32(value), CodedOutputStream.ComputeUInt3… in ForUInt32()
134 … => input.ReadInt64(), (output, value) => output.WriteInt64(value), CodedOutputStream.ComputeInt64… in ForInt64()
144 …> input.ReadSInt64(), (output, value) => output.WriteSInt64(value), CodedOutputStream.ComputeSInt6… in ForSInt64()
174 …> input.ReadUInt64(), (output, value) => output.WriteUInt64(value), CodedOutputStream.ComputeUInt6… in ForUInt64()
184 … => input.ReadFloat(), (output, value) => output.WriteFloat(value), CodedOutputStream.ComputeFloat… in ForFloat()
[all …]
DMessageExtensions.cs111 CodedOutputStream output = new CodedOutputStream(result); in ToByteArray()
126 CodedOutputStream codedOutput = new CodedOutputStream(output); in WriteTo()
140 CodedOutputStream codedOutput = new CodedOutputStream(output); in WriteDelimitedTo()
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/java/core/src/main/java/com/google/protobuf/
DFieldSet.java586 public void writeTo(final CodedOutputStream output) in writeTo()
602 public void writeMessageSetTo(final CodedOutputStream output) in writeMessageSetTo()
615 final CodedOutputStream output) throws IOException { in writeMessageSetTo()
641 private static void writeElement(final CodedOutputStream output, in writeElement()
666 final CodedOutputStream output, in writeElementNoTag()
713 final CodedOutputStream output) in writeField()
785 return CodedOutputStream.computeLazyFieldMessageSetExtensionSize( in getMessageSetSerializedSize()
788 return CodedOutputStream.computeMessageSetExtensionSize( in getMessageSetSerializedSize()
810 int tagSize = CodedOutputStream.computeTagSize(number); in computeElementSize()
834 case DOUBLE : return CodedOutputStream.computeDoubleSizeNoTag ((Double )value); in computeElementSizeNoTag()
[all …]
DAbstractMessageLite.java70 final CodedOutputStream output = CodedOutputStream.newInstance(result); in toByteArray()
84 CodedOutputStream.computePreferredBufferSize(getSerializedSize()); in writeTo()
85 final CodedOutputStream codedOutput = in writeTo()
86 CodedOutputStream.newInstance(output, bufferSize); in writeTo()
94 final int bufferSize = CodedOutputStream.computePreferredBufferSize( in writeDelimitedTo()
95 CodedOutputStream.computeRawVarint32Size(serialized) + serialized); in writeDelimitedTo()
96 final CodedOutputStream codedOutput = in writeDelimitedTo()
97 CodedOutputStream.newInstance(output, bufferSize); in writeDelimitedTo()
DUnknownFieldSet.java131 public void writeTo(final CodedOutputStream output) throws IOException { in writeTo()
173 final CodedOutputStream output = CodedOutputStream.newInstance(result); in toByteArray()
190 final CodedOutputStream codedOutput = CodedOutputStream.newInstance(output); in writeTo()
197 final CodedOutputStream codedOutput = CodedOutputStream.newInstance(output); in writeDelimitedTo()
217 public void writeAsMessageSetTo(final CodedOutputStream output) in writeAsMessageSetTo()
786 public void writeTo(final int fieldNumber, final CodedOutputStream output) in writeTo()
812 result += CodedOutputStream.computeUInt64Size(fieldNumber, value); in getSerializedSize()
815 result += CodedOutputStream.computeFixed32Size(fieldNumber, value); in getSerializedSize()
818 result += CodedOutputStream.computeFixed64Size(fieldNumber, value); in getSerializedSize()
821 result += CodedOutputStream.computeBytesSize(fieldNumber, value); in getSerializedSize()
[all …]
/external/protobuf/src/google/protobuf/io/
Dcoded_stream.cc89 void CodedOutputStream::EnableAliasing(bool enabled) { in EnableAliasing()
617 CodedOutputStream::CodedOutputStream(ZeroCopyOutputStream* output) in CodedOutputStream() function in google::protobuf::io::CodedOutputStream
632 CodedOutputStream::CodedOutputStream(ZeroCopyOutputStream* output, in CodedOutputStream() function in google::protobuf::io::CodedOutputStream
650 CodedOutputStream::~CodedOutputStream() { in ~CodedOutputStream()
654 void CodedOutputStream::Trim() { in Trim()
663 bool CodedOutputStream::Skip(int count) { in Skip()
675 bool CodedOutputStream::GetDirectBufferPointer(void** data, int* size) { in GetDirectBufferPointer()
683 void CodedOutputStream::WriteRaw(const void* data, int size) { in WriteRaw()
695 uint8* CodedOutputStream::WriteRawToArray( in WriteRawToArray()
702 void CodedOutputStream::WriteAliasedRaw(const void* data, int size) { in WriteAliasedRaw()
[all …]
Dcoded_stream.h146 class CodedOutputStream; variable
665 class LIBPROTOBUF_EXPORT CodedOutputStream {
668 explicit CodedOutputStream(ZeroCopyOutputStream* output);
669 CodedOutputStream(ZeroCopyOutputStream* output, bool do_eager_refresh);
673 ~CodedOutputStream();
804 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(CodedOutputStream);
1066 inline uint8* CodedOutputStream::GetDirectBufferForNBytesAndAdvance(int size) { in GetDirectBufferForNBytesAndAdvance()
1076 inline uint8* CodedOutputStream::WriteVarint32ToArray(uint32 value, in WriteVarint32ToArray()
1087 inline void CodedOutputStream::WriteVarint32SignExtended(int32 value) { in WriteVarint32SignExtended()
1095 inline uint8* CodedOutputStream::WriteVarint32SignExtendedToArray( in WriteVarint32SignExtendedToArray()
[all …]
/external/protobuf/src/google/protobuf/util/internal/
Dproto_writer.cc54 using google::protobuf::io::CodedOutputStream;
72 stream_(new CodedOutputStream(&adapter_)), in ProtoWriter()
89 stream_(new CodedOutputStream(&adapter_)), in ProtoWriter()
114 CodedOutputStream* stream) { in WriteInt32()
124 CodedOutputStream* stream) { in WriteSFixed32()
134 CodedOutputStream* stream) { in WriteSInt32()
144 CodedOutputStream* stream) { in WriteFixed32()
154 CodedOutputStream* stream) { in WriteUInt32()
164 CodedOutputStream* stream) { in WriteInt64()
174 CodedOutputStream* stream) { in WriteSFixed64()
[all …]
/external/protobuf/csharp/src/Google.Protobuf.Test/Collections/
DRepeatedFieldTest.cs225 var output = new CodedOutputStream(stream); in AddEntriesFrom_PackedInt32()
226 var length = CodedOutputStream.ComputeInt32Size(10) in AddEntriesFrom_PackedInt32()
227 + CodedOutputStream.ComputeInt32Size(999) in AddEntriesFrom_PackedInt32()
228 + CodedOutputStream.ComputeInt32Size(-1000); in AddEntriesFrom_PackedInt32()
253 var output = new CodedOutputStream(stream); in AddEntriesFrom_NonPackedInt32()
279 var output = new CodedOutputStream(stream); in AddEntriesFrom_String()
305 var output = new CodedOutputStream(stream); in AddEntriesFrom_Message()
327 var output = new CodedOutputStream(stream); in WriteTo_PackedInt32()
339 … Assert.AreEqual(1 + CodedOutputStream.ComputeLengthSize(length) + length, stream.Length); in WriteTo_PackedInt32()
348 var output = new CodedOutputStream(stream); in WriteTo_NonPackedInt32()
[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 …]
DMessages.cs178 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
330 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
348 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); in CalculateSize()
351 size += 1 + pb::CodedOutputStream.ComputeBytesSize(Body); in CalculateSize()
491 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
509 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Code); in CalculateSize()
512 size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); in CalculateSize()
763 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
805 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseType); in CalculateSize()
808 size += 1 + pb::CodedOutputStream.ComputeInt32Size(ResponseSize); in CalculateSize()
[all …]
/external/protobuf/csharp/src/Google.Protobuf.Test/TestProtos/
DUnittestIssues.cs135 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
213 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
291 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
414 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
426 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Value); in CalculateSize()
520 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
677 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
698 size += 1 + pb::CodedOutputStream.ComputeInt32Size(PrimitiveValue); in CalculateSize()
702 size += 1 + pb::CodedOutputStream.ComputeMessageSize(MessageValue); in CalculateSize()
706 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EnumValue); in CalculateSize()
[all …]
/external/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/
DType.cs237 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
258 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); in CalculateSize()
264 size += 1 + pb::CodedOutputStream.ComputeMessageSize(SourceContext); in CalculateSize()
267 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Syntax); in CalculateSize()
546 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
589 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Kind); in CalculateSize()
592 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Cardinality); in CalculateSize()
595 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number); in CalculateSize()
598 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); in CalculateSize()
601 size += 1 + pb::CodedOutputStream.ComputeStringSize(TypeUrl); in CalculateSize()
[all …]
DWrappers.cs124 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
235 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
346 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
356 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Value); in CalculateSize()
457 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
467 size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Value); in CalculateSize()
568 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
578 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value); in CalculateSize()
679 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
689 size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Value); in CalculateSize()
[all …]
DApi.cs236 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
261 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); in CalculateSize()
266 size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); in CalculateSize()
269 size += 1 + pb::CodedOutputStream.ComputeMessageSize(SourceContext); in CalculateSize()
273 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Syntax); in CalculateSize()
509 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
540 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); in CalculateSize()
543 size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestTypeUrl); in CalculateSize()
549 size += 1 + pb::CodedOutputStream.ComputeStringSize(ResponseTypeUrl); in CalculateSize()
556 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Syntax); 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/src/Google.Protobuf/Reflection/
DDescriptor.cs235 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
499 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
532 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); in CalculateSize()
535 size += 1 + pb::CodedOutputStream.ComputeStringSize(Package); in CalculateSize()
545 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); in CalculateSize()
548 size += 1 + pb::CodedOutputStream.ComputeMessageSize(SourceCodeInfo); in CalculateSize()
551 size += 1 + pb::CodedOutputStream.ComputeStringSize(Syntax); in CalculateSize()
837 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
859 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); in CalculateSize()
868 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); in CalculateSize()
[all …]

12345678910