Home
last modified time | relevance | path

Searched refs:ComputeLengthSize (Results 1 – 6 of 6) sorted by relevance

/third_party/protobuf/csharp/src/Google.Protobuf/
DCodedOutputStream.ComputeSize.cs136 return ComputeLengthSize(byteArraySize) + byteArraySize; in ComputeStringSize()
155 return ComputeLengthSize(size) + size; in ComputeMessageSize()
164 return ComputeLengthSize(value.Length) + value.Length; in ComputeBytesSize()
227 public static int ComputeLengthSize(int length) in ComputeLengthSize() method in Google.Protobuf.CodedOutputStream
DFieldCodec.cs628 return CodedOutputStream.ComputeLengthSize(fieldLength) + fieldLength;
/third_party/protobuf/csharp/src/Google.Protobuf.Benchmarks/
DWriteMessagesBenchmark.cs157 …uffer = new byte[maxMessageCount * (messageSize + CodedOutputStream.ComputeLengthSize(messageSize)… in SubTest()
/third_party/protobuf/csharp/src/Google.Protobuf/Collections/
DRepeatedField.cs187 CodedOutputStream.ComputeLengthSize(dataSize) + in CalculateSize()
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Collections/
DRepeatedFieldTest.cs425 … Assert.AreEqual(1 + CodedOutputStream.ComputeLengthSize(length) + length, stream.Length); in WriteTo_PackedInt32()
/third_party/protobuf/csharp/src/Google.Protobuf.Test/Collections/
DRepeatedFieldTest.cs426 … Assert.AreEqual(1 + CodedOutputStream.ComputeLengthSize(length) + length, stream.Length); in WriteTo_PackedInt32()