Home
last modified time | relevance | path

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

123456

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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 …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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 var codedOutput = new CodedOutputStream(stream); in TestDefaultValue()
174 codedOutput = new CodedOutputStream(stream); in TestDefaultValue()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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 …]
DUnknownFieldSetLiteTest.java195 CodedOutputStream output = CodedOutputStream.newInstance(byteStringOutput); in testMissingStartGroupTag()
210 CodedOutputStream output = CodedOutputStream.newInstance(byteStringOutput); in testMissingEndGroupTag()
225 CodedOutputStream output = CodedOutputStream.newInstance(byteStringOutput); in testMismatchingGroupTags()
319 CodedOutputStream output = CodedOutputStream.newInstance(byteArrayOutputStream); in toByteString()
DCodedInputStreamTest.java421 CodedOutputStream output = CodedOutputStream.newInstance(rawOutput); in testReadMaliciouslyLargeBlob()
561 CodedOutputStream output = CodedOutputStream.newInstance(rawOutput, bytes.length); in testReadString()
586 CodedOutputStream output = CodedOutputStream.newInstance(rawOutput, bytes.length); in testReadStringRequireUtf8()
609 CodedOutputStream output = CodedOutputStream.newInstance(rawOutput); in testReadStringInvalidUtf8()
629 CodedOutputStream output = CodedOutputStream.newInstance(rawOutput); in testReadStringRequireUtf8InvalidUtf8()
676 CodedOutputStream output = CodedOutputStream.newInstance(rawOutput); in testReadByteArray()
712 CodedOutputStream output = CodedOutputStream.newInstance(rawOutput); in testReadByteBuffer()
749 CodedOutputStream output = CodedOutputStream.newInstance(byteArrayStream); in testReadByteBufferAliasing()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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.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);
Dmessage_lite.h50 class CodedOutputStream; variable
206 bool SerializeToCodedStream(io::CodedOutputStream* output) const;
208 bool SerializePartialToCodedStream(io::CodedOutputStream* output) const;
253 io::CodedOutputStream* output) const = 0;
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 …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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()
642 final CodedOutputStream output, in writeElement()
667 final CodedOutputStream output, in writeElementNoTag()
714 final CodedOutputStream output) in writeField()
786 return CodedOutputStream.computeLazyFieldMessageSetExtensionSize( in getMessageSetSerializedSize()
789 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.java68 final CodedOutputStream output = CodedOutputStream.newInstance(result); in toByteArray()
80 CodedOutputStream.computePreferredBufferSize(getSerializedSize()); in writeTo()
81 final CodedOutputStream codedOutput = in writeTo()
82 CodedOutputStream.newInstance(output, bufferSize); in writeTo()
90 final int bufferSize = CodedOutputStream.computePreferredBufferSize( in writeDelimitedTo()
91 CodedOutputStream.computeRawVarint32Size(serialized) + serialized); in writeDelimitedTo()
92 final CodedOutputStream codedOutput = in writeDelimitedTo()
93 CodedOutputStream.newInstance(output, bufferSize); in writeDelimitedTo()
DUnknownFieldSet.java132 public void writeTo(final CodedOutputStream output) throws IOException { in writeTo()
175 final CodedOutputStream output = CodedOutputStream.newInstance(result); in toByteArray()
192 final CodedOutputStream codedOutput = CodedOutputStream.newInstance(output); in writeTo()
199 final CodedOutputStream codedOutput = CodedOutputStream.newInstance(output); in writeDelimitedTo()
219 public void writeAsMessageSetTo(final CodedOutputStream output) in writeAsMessageSetTo()
788 public void writeTo(final int fieldNumber, final CodedOutputStream output) in writeTo()
814 result += CodedOutputStream.computeUInt64Size(fieldNumber, value); in getSerializedSize()
817 result += CodedOutputStream.computeFixed32Size(fieldNumber, value); in getSerializedSize()
820 result += CodedOutputStream.computeFixed64Size(fieldNumber, value); in getSerializedSize()
823 result += CodedOutputStream.computeBytesSize(fieldNumber, value); in getSerializedSize()
[all …]
DUnknownFieldSetLite.java150 public void writeTo(CodedOutputStream output) throws IOException { in writeTo()
195 size += CodedOutputStream.computeUInt64Size(fieldNumber, (Long) objects[i]); in getSerializedSize()
198 size += CodedOutputStream.computeFixed32Size(fieldNumber, (Integer) objects[i]); in getSerializedSize()
201 size += CodedOutputStream.computeFixed64Size(fieldNumber, (Long) objects[i]); in getSerializedSize()
204 size += CodedOutputStream.computeBytesSize(fieldNumber, (ByteString) objects[i]); in getSerializedSize()
207 size += CodedOutputStream.computeTagSize(fieldNumber) * 2 in getSerializedSize()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/io/
Dcoded_stream.h146 class CodedOutputStream; variable
678 class LIBPROTOBUF_EXPORT CodedOutputStream {
681 explicit CodedOutputStream(ZeroCopyOutputStream* output);
682 CodedOutputStream(ZeroCopyOutputStream* output, bool do_eager_refresh);
686 ~CodedOutputStream();
855 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(CodedOutputStream);
1135 inline uint8* CodedOutputStream::GetDirectBufferForNBytesAndAdvance(int size) { in GetDirectBufferForNBytesAndAdvance()
1145 inline uint8* CodedOutputStream::WriteVarint32ToArray(uint32 value, in WriteVarint32ToArray()
1156 inline void CodedOutputStream::WriteVarint32SignExtended(int32 value) { in WriteVarint32SignExtended()
1164 inline uint8* CodedOutputStream::WriteVarint32SignExtendedToArray( in WriteVarint32SignExtendedToArray()
[all …]
Dcoded_stream.cc89 void CodedOutputStream::EnableAliasing(bool enabled) { in EnableAliasing()
652 bool CodedOutputStream::default_serialization_deterministic_ = false;
654 CodedOutputStream::CodedOutputStream(ZeroCopyOutputStream* output) in CodedOutputStream() function in google::protobuf::io::CodedOutputStream
670 CodedOutputStream::CodedOutputStream(ZeroCopyOutputStream* output, in CodedOutputStream() function in google::protobuf::io::CodedOutputStream
689 CodedOutputStream::~CodedOutputStream() { in ~CodedOutputStream()
693 void CodedOutputStream::Trim() { in Trim()
702 bool CodedOutputStream::Skip(int count) { in Skip()
714 bool CodedOutputStream::GetDirectBufferPointer(void** data, int* size) { in GetDirectBufferPointer()
722 void CodedOutputStream::WriteRaw(const void* data, int size) { in WriteRaw()
734 uint8* CodedOutputStream::WriteRawToArray( in WriteRawToArray()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/internal/
Dproto_writer.cc54 using google::protobuf::io::CodedOutputStream;
73 stream_(new CodedOutputStream(&adapter_)), in ProtoWriter()
91 stream_(new CodedOutputStream(&adapter_)), in ProtoWriter()
116 CodedOutputStream* stream) { in WriteInt32()
126 CodedOutputStream* stream) { in WriteSFixed32()
136 CodedOutputStream* stream) { in WriteSInt32()
146 CodedOutputStream* stream) { in WriteFixed32()
156 CodedOutputStream* stream) { in WriteUInt32()
166 CodedOutputStream* stream) { in WriteInt64()
176 CodedOutputStream* stream) { in WriteSFixed64()
[all …]
Djson_objectwriter.h91 google::protobuf::io::CodedOutputStream* out) in JsonObjectWriter()
145 explicit ByteSinkWrapper(google::protobuf::io::CodedOutputStream* stream) in ByteSinkWrapper()
155 google::protobuf::io::CodedOutputStream* stream_;
199 google::protobuf::io::CodedOutputStream* stream_;
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/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 …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/WellKnownTypes/
DType.cs252 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
274 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); in CalculateSize()
280 size += 1 + pb::CodedOutputStream.ComputeMessageSize(SourceContext); in CalculateSize()
283 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Syntax); in CalculateSize()
584 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
628 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Kind); in CalculateSize()
631 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Cardinality); in CalculateSize()
634 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number); in CalculateSize()
637 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); in CalculateSize()
640 size += 1 + pb::CodedOutputStream.ComputeStringSize(TypeUrl); in CalculateSize()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/TestProtos/
DUnittestIssues.cs144 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
235 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
326 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
465 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
478 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Value); in CalculateSize()
584 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
760 public void WriteTo(pb::CodedOutputStream output) { in WriteTo()
782 size += 1 + pb::CodedOutputStream.ComputeInt32Size(PrimitiveValue); in CalculateSize()
786 size += 1 + pb::CodedOutputStream.ComputeMessageSize(MessageValue); in CalculateSize()
790 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EnumValue); in CalculateSize()
[all …]

123456