Searched refs:WritingPrimitives (Results 1 – 9 of 9) sorted by relevance
/third_party/protobuf/csharp/src/Google.Protobuf/ |
D | WriteContext.cs | 106 WritingPrimitives.WriteDouble(ref buffer, ref state, value); in WriteDouble() 115 WritingPrimitives.WriteFloat(ref buffer, ref state, value); in WriteFloat() 124 WritingPrimitives.WriteUInt64(ref buffer, ref state, value); in WriteUInt64() 133 WritingPrimitives.WriteInt64(ref buffer, ref state, value); in WriteInt64() 142 WritingPrimitives.WriteInt32(ref buffer, ref state, value); in WriteInt32() 151 WritingPrimitives.WriteFixed64(ref buffer, ref state, value); in WriteFixed64() 160 WritingPrimitives.WriteFixed32(ref buffer, ref state, value); in WriteFixed32() 169 WritingPrimitives.WriteBool(ref buffer, ref state, value); in WriteBool() 179 WritingPrimitives.WriteString(ref buffer, ref state, value); in WriteString() 208 WritingPrimitives.WriteBytes(ref buffer, ref state, value); in WriteBytes() [all …]
|
D | CodedOutputStream.cs | 174 WritingPrimitives.WriteDouble(ref span, ref state, value); in WriteDouble() 184 WritingPrimitives.WriteFloat(ref span, ref state, value); in WriteFloat() 194 WritingPrimitives.WriteUInt64(ref span, ref state, value); in WriteUInt64() 204 WritingPrimitives.WriteInt64(ref span, ref state, value); in WriteInt64() 214 WritingPrimitives.WriteInt32(ref span, ref state, value); in WriteInt32() 224 WritingPrimitives.WriteFixed64(ref span, ref state, value); in WriteFixed64() 234 WritingPrimitives.WriteFixed32(ref span, ref state, value); in WriteFixed32() 244 WritingPrimitives.WriteBool(ref span, ref state, value); in WriteBool() 255 WritingPrimitives.WriteString(ref span, ref state, value); in WriteString() 328 WritingPrimitives.WriteBytes(ref span, ref state, value); in WriteBytes() [all …]
|
D | CodedOutputStream.ComputeSize.cs | 135 int byteArraySize = WritingPrimitives.Utf8Encoding.GetByteCount(value); in ComputeStringSize() 211 return ComputeRawVarint32Size(WritingPrimitives.EncodeZigZag32(value)); in ComputeSInt32Size() 220 return ComputeRawVarint64Size(WritingPrimitives.EncodeZigZag64(value)); in ComputeSInt64Size()
|
D | WritingPrimitivesMessages.cs | 53 WritingPrimitives.WriteLength(ref ctx.buffer, ref ctx.state, value.CalculateSize()); in WriteMessage()
|
D | ParsingPrimitives.cs | 605 value = WritingPrimitives.Utf8Encoding.GetString(sourceBytes, length); in ReadRawString() 648 return WritingPrimitives.Utf8Encoding.GetString(pByteSpan, length); in ReadStringSlow() 666 …return WritingPrimitives.Utf8Encoding.GetString(ReadRawBytes(ref buffer, ref state, length), 0, le… in ReadStringSlow()
|
D | WritingPrimitives.cs | 46 internal static class WritingPrimitives class
|
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/ |
D | CodedOutputStreamTest.cs | 214 Assert.AreEqual(0u, WritingPrimitives.EncodeZigZag32(0)); in EncodeZigZag32() 215 Assert.AreEqual(1u, WritingPrimitives.EncodeZigZag32(-1)); in EncodeZigZag32() 216 Assert.AreEqual(2u, WritingPrimitives.EncodeZigZag32(1)); in EncodeZigZag32() 217 Assert.AreEqual(3u, WritingPrimitives.EncodeZigZag32(-2)); in EncodeZigZag32() 218 Assert.AreEqual(0x7FFFFFFEu, WritingPrimitives.EncodeZigZag32(0x3FFFFFFF)); in EncodeZigZag32() 219 … Assert.AreEqual(0x7FFFFFFFu, WritingPrimitives.EncodeZigZag32(unchecked((int) 0xC0000000))); in EncodeZigZag32() 220 Assert.AreEqual(0xFFFFFFFEu, WritingPrimitives.EncodeZigZag32(0x7FFFFFFF)); in EncodeZigZag32() 221 … Assert.AreEqual(0xFFFFFFFFu, WritingPrimitives.EncodeZigZag32(unchecked((int) 0x80000000))); in EncodeZigZag32() 227 Assert.AreEqual(0u, WritingPrimitives.EncodeZigZag64(0)); in EncodeZigZag64() 228 Assert.AreEqual(1u, WritingPrimitives.EncodeZigZag64(-1)); in EncodeZigZag64() [all …]
|
/third_party/protobuf/csharp/src/Google.Protobuf.Test/ |
D | CodedOutputStreamTest.cs | 308 Assert.AreEqual(0u, WritingPrimitives.EncodeZigZag32(0)); in EncodeZigZag32() 309 Assert.AreEqual(1u, WritingPrimitives.EncodeZigZag32(-1)); in EncodeZigZag32() 310 Assert.AreEqual(2u, WritingPrimitives.EncodeZigZag32(1)); in EncodeZigZag32() 311 Assert.AreEqual(3u, WritingPrimitives.EncodeZigZag32(-2)); in EncodeZigZag32() 312 Assert.AreEqual(0x7FFFFFFEu, WritingPrimitives.EncodeZigZag32(0x3FFFFFFF)); in EncodeZigZag32() 313 … Assert.AreEqual(0x7FFFFFFFu, WritingPrimitives.EncodeZigZag32(unchecked((int) 0xC0000000))); in EncodeZigZag32() 314 Assert.AreEqual(0xFFFFFFFEu, WritingPrimitives.EncodeZigZag32(0x7FFFFFFF)); in EncodeZigZag32() 315 … Assert.AreEqual(0xFFFFFFFFu, WritingPrimitives.EncodeZigZag32(unchecked((int) 0x80000000))); in EncodeZigZag32() 321 Assert.AreEqual(0u, WritingPrimitives.EncodeZigZag64(0)); in EncodeZigZag64() 322 Assert.AreEqual(1u, WritingPrimitives.EncodeZigZag64(-1)); in EncodeZigZag64() [all …]
|
/third_party/protobuf/ |
D | Makefile.am | 266 csharp/src/Google.Protobuf/WritingPrimitives.cs \
|