Home
last modified time | relevance | path

Searched refs:WriteLength (Results 1 – 14 of 14) sorted by relevance

/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/
DGeneratedMessageTest.cs262 output.WriteLength(2 + nestedMessage.CalculateSize()); in MapWithOnlyValue()
279 output.WriteLength(1 + CodedOutputStream.ComputeInt32Size(key)); in MapWithOnlyKey_PrimitiveValue()
296 output.WriteLength(1 + CodedOutputStream.ComputeInt32Size(key)); in MapWithOnlyKey_MessageValue()
320 output.WriteLength(6); in MapIgnoresExtraFieldsWithinEntryMessages()
346 output.WriteLength(4); in MapFieldOrderIsIrrelevant()
372 output.WriteLength(4); in MapNonContiguousEntries()
382 output.WriteLength(6); // 3 bytes per entry: tag, size, character in MapNonContiguousEntries()
392 output.WriteLength(4); in MapNonContiguousEntries()
420 output.WriteLength(4); in DuplicateKeys_LastEntryWins()
428 output.WriteLength(4); in DuplicateKeys_LastEntryWins()
/third_party/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/
DWrappersTest.cs166 output.WriteLength(2); in RepeatedWrappersBinaryFormat()
171 output.WriteLength(0); in RepeatedWrappersBinaryFormat()
345 coded.WriteLength(2); // valueTag + a value 0, each one byte in MergingStreamExplicitValue()
406 … output.WriteLength(6); // unknownTag + value 5 + valueType, each 1 byte, + value 65536, 3 bytes in UnknownFieldInWrapperInt32FastPath()
433 output.WriteLength(4); // unknownTag + value 5 + valueType + value 6, each 1 byte in UnknownFieldInWrapperInt32SlowPath()
460 …output.WriteLength(11); // unknownTag + value 5 + valueType, each 1 byte, + value 0xfffffffffffff,… in UnknownFieldInWrapperInt64FastPath()
487 output.WriteLength(4); // unknownTag + value 5 + valueType + value 6, each 1 byte in UnknownFieldInWrapperInt64SlowPath()
/third_party/protobuf/csharp/src/Google.Protobuf.Test/
DGeneratedMessageTest.cs272 output.WriteLength(2 + nestedMessage.CalculateSize()); in MapWithOnlyValue()
294 output.WriteLength(1 + CodedOutputStream.ComputeInt32Size(key)); in MapWithOnlyKey_PrimitiveValue()
316 output.WriteLength(1 + CodedOutputStream.ComputeInt32Size(key)); in MapWithOnlyKey_MessageValue()
345 output.WriteLength(6); in MapIgnoresExtraFieldsWithinEntryMessages()
376 output.WriteLength(4); in MapFieldOrderIsIrrelevant()
407 output.WriteLength(4); in MapNonContiguousEntries()
417 output.WriteLength(6); // 3 bytes per entry: tag, size, character in MapNonContiguousEntries()
427 output.WriteLength(4); in MapNonContiguousEntries()
461 output.WriteLength(4); in DuplicateKeys_LastEntryWins()
469 output.WriteLength(4); in DuplicateKeys_LastEntryWins()
DUnknownFieldSetTest.cs196 output.WriteLength(-1); in TestReadInvalidWireTypeThrowsInvalidProtocolBufferException()
DCodedInputStreamTest.cs607 output.WriteLength(-1); in ReadNegativeSizedStringThrowsInvalidProtocolBufferException()
625 output.WriteLength(-1); in ReadNegativeSizedBytesThrowsInvalidProtocolBufferException()
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/WellKnownTypes/
DWrappersTest.cs161 output.WriteLength(2); in RepeatedWrappersBinaryFormat()
166 output.WriteLength(0); in RepeatedWrappersBinaryFormat()
338 coded.WriteLength(2); // valueTag + a value 0, each one byte in MergingStreamExplicitValue()
398 output.WriteLength(4); // unknownTag + value 5 + valueType + value 6, each 1 byte in UnknownFieldInWrapper()
/third_party/protobuf/csharp/src/Google.Protobuf/
DWriteContext.cs272 public void WriteLength(int length) in WriteLength() method
274 WritingPrimitives.WriteLength(ref buffer, ref state, length); in WriteLength()
DWritingPrimitivesMessages.cs53 WritingPrimitives.WriteLength(ref ctx.buffer, ref ctx.state, value.CalculateSize()); in WriteMessage()
DCodedOutputStream.cs398 public void WriteLength(int length) in WriteLength() method in Google.Protobuf.CodedOutputStream
401 WritingPrimitives.WriteLength(ref span, ref state, length); in WriteLength()
DWritingPrimitives.cs169 WriteLength(ref buffer, ref state, length); in WriteString()
218 WriteLength(ref buffer, ref state, value.Length); in WriteBytes()
276 … public static void WriteLength(ref Span<byte> buffer, ref WriterInternalState state, int length) in WriteLength() method in Google.Protobuf.WritingPrimitives
DMessageExtensions.cs133 codedOutput.WriteLength(message.CalculateSize()); in WriteDelimitedTo()
DFieldCodec.cs621 ctx.WriteLength(codec.CalculateSizeWithTag(value));
/third_party/protobuf/csharp/src/Google.Protobuf/Collections/
DRepeatedField.cs264 ctx.WriteLength(size); in WriteTo()
/third_party/protobuf/csharp/src/Google.Protobuf.Test/Collections/
DMapFieldTest.cs596 output.WriteLength(20); // total of keyTag + key + valueTag + value in AddEntriesFrom_CodedInputStream()