Lines Matching full:ref
56 … public static void WriteDouble(ref Span<byte> buffer, ref WriterInternalState state, double value) in WriteDouble()
58 … WriteRawLittleEndian64(ref buffer, ref state, (ulong)BitConverter.DoubleToInt64Bits(value)); in WriteDouble()
64 …public static unsafe void WriteFloat(ref Span<byte> buffer, ref WriterInternalState state, float v… in WriteFloat()
71 Unsafe.WriteUnaligned(ref MemoryMarshal.GetReference(floatSpan), value); in WriteFloat()
81 WriteFloatSlowPath(ref buffer, ref state, value); in WriteFloat()
86 …private static unsafe void WriteFloatSlowPath(ref Span<byte> buffer, ref WriterInternalState state… in WriteFloatSlowPath()
92 Unsafe.WriteUnaligned(ref MemoryMarshal.GetReference(floatSpan), value); in WriteFloatSlowPath()
98 WriteRawByte(ref buffer, ref state, floatSpan[0]); in WriteFloatSlowPath()
99 WriteRawByte(ref buffer, ref state, floatSpan[1]); in WriteFloatSlowPath()
100 WriteRawByte(ref buffer, ref state, floatSpan[2]); in WriteFloatSlowPath()
101 WriteRawByte(ref buffer, ref state, floatSpan[3]); in WriteFloatSlowPath()
107 … public static void WriteUInt64(ref Span<byte> buffer, ref WriterInternalState state, ulong value) in WriteUInt64()
109 WriteRawVarint64(ref buffer, ref state, value); in WriteUInt64()
115 … public static void WriteInt64(ref Span<byte> buffer, ref WriterInternalState state, long value) in WriteInt64()
117 WriteRawVarint64(ref buffer, ref state, (ulong)value); in WriteInt64()
123 … public static void WriteInt32(ref Span<byte> buffer, ref WriterInternalState state, int value) in WriteInt32()
127 WriteRawVarint32(ref buffer, ref state, (uint)value); in WriteInt32()
132 WriteRawVarint64(ref buffer, ref state, (ulong)value); in WriteInt32()
139 … public static void WriteFixed64(ref Span<byte> buffer, ref WriterInternalState state, ulong value) in WriteFixed64()
141 WriteRawLittleEndian64(ref buffer, ref state, value); in WriteFixed64()
147 … public static void WriteFixed32(ref Span<byte> buffer, ref WriterInternalState state, uint value) in WriteFixed32()
149 WriteRawLittleEndian32(ref buffer, ref state, value); in WriteFixed32()
155 … public static void WriteBool(ref Span<byte> buffer, ref WriterInternalState state, bool value) in WriteBool()
157 WriteRawByte(ref buffer, ref state, value ? (byte)1 : (byte)0); in WriteBool()
164 … public static void WriteString(ref Span<byte> buffer, ref WriterInternalState state, string value) in WriteString()
169 WriteLength(ref buffer, ref state, length); in WriteString()
185 WriteRawBytes(ref buffer, ref state, bytes); in WriteString()
208 WriteRawBytes(ref buffer, ref state, bytes); in WriteString()
216 …public static void WriteBytes(ref Span<byte> buffer, ref WriterInternalState state, ByteString val… in WriteBytes()
218 WriteLength(ref buffer, ref state, value.Length); in WriteBytes()
219 WriteRawBytes(ref buffer, ref state, value.Span); in WriteBytes()
225 … public static void WriteUInt32(ref Span<byte> buffer, ref WriterInternalState state, uint value) in WriteUInt32()
227 WriteRawVarint32(ref buffer, ref state, value); in WriteUInt32()
233 … public static void WriteEnum(ref Span<byte> buffer, ref WriterInternalState state, int value) in WriteEnum()
235 WriteInt32(ref buffer, ref state, value); in WriteEnum()
241 … public static void WriteSFixed32(ref Span<byte> buffer, ref WriterInternalState state, int value) in WriteSFixed32()
243 WriteRawLittleEndian32(ref buffer, ref state, (uint)value); in WriteSFixed32()
249 … public static void WriteSFixed64(ref Span<byte> buffer, ref WriterInternalState state, long value) in WriteSFixed64()
251 WriteRawLittleEndian64(ref buffer, ref state, (ulong)value); in WriteSFixed64()
257 … public static void WriteSInt32(ref Span<byte> buffer, ref WriterInternalState state, int value) in WriteSInt32()
259 WriteRawVarint32(ref buffer, ref state, EncodeZigZag32(value)); in WriteSInt32()
265 … public static void WriteSInt64(ref Span<byte> buffer, ref WriterInternalState state, long value) in WriteSInt64()
267 WriteRawVarint64(ref buffer, ref state, EncodeZigZag64(value)); in WriteSInt64()
276 … public static void WriteLength(ref Span<byte> buffer, ref WriterInternalState state, int length) in WriteLength()
278 WriteRawVarint32(ref buffer, ref state, (uint)length); in WriteLength()
289 …public static void WriteRawVarint32(ref Span<byte> buffer, ref WriterInternalState state, uint val… in WriteRawVarint32()
315 WriteRawByte(ref buffer, ref state, (byte)((value & 0x7F) | 0x80)); in WriteRawVarint32()
319 WriteRawByte(ref buffer, ref state, (byte)value); in WriteRawVarint32()
322 …public static void WriteRawVarint64(ref Span<byte> buffer, ref WriterInternalState state, ulong va… in WriteRawVarint64()
348 WriteRawByte(ref buffer, ref state, (byte)((value & 0x7F) | 0x80)); in WriteRawVarint64()
352 WriteRawByte(ref buffer, ref state, (byte)value); in WriteRawVarint64()
355 …public static void WriteRawLittleEndian32(ref Span<byte> buffer, ref WriterInternalState state, ui… in WriteRawLittleEndian32()
360 WriteRawLittleEndian32SlowPath(ref buffer, ref state, value); in WriteRawLittleEndian32()
370 …private static void WriteRawLittleEndian32SlowPath(ref Span<byte> buffer, ref WriterInternalState … in WriteRawLittleEndian32SlowPath()
372 WriteRawByte(ref buffer, ref state, (byte)value); in WriteRawLittleEndian32SlowPath()
373 WriteRawByte(ref buffer, ref state, (byte)(value >> 8)); in WriteRawLittleEndian32SlowPath()
374 WriteRawByte(ref buffer, ref state, (byte)(value >> 16)); in WriteRawLittleEndian32SlowPath()
375 WriteRawByte(ref buffer, ref state, (byte)(value >> 24)); in WriteRawLittleEndian32SlowPath()
378 …public static void WriteRawLittleEndian64(ref Span<byte> buffer, ref WriterInternalState state, ul… in WriteRawLittleEndian64()
383 WriteRawLittleEndian64SlowPath(ref buffer, ref state, value); in WriteRawLittleEndian64()
393 …public static void WriteRawLittleEndian64SlowPath(ref Span<byte> buffer, ref WriterInternalState s… in WriteRawLittleEndian64SlowPath()
395 WriteRawByte(ref buffer, ref state, (byte)value); in WriteRawLittleEndian64SlowPath()
396 WriteRawByte(ref buffer, ref state, (byte)(value >> 8)); in WriteRawLittleEndian64SlowPath()
397 WriteRawByte(ref buffer, ref state, (byte)(value >> 16)); in WriteRawLittleEndian64SlowPath()
398 WriteRawByte(ref buffer, ref state, (byte)(value >> 24)); in WriteRawLittleEndian64SlowPath()
399 WriteRawByte(ref buffer, ref state, (byte)(value >> 32)); in WriteRawLittleEndian64SlowPath()
400 WriteRawByte(ref buffer, ref state, (byte)(value >> 40)); in WriteRawLittleEndian64SlowPath()
401 WriteRawByte(ref buffer, ref state, (byte)(value >> 48)); in WriteRawLittleEndian64SlowPath()
402 WriteRawByte(ref buffer, ref state, (byte)(value >> 56)); in WriteRawLittleEndian64SlowPath()
405 … private static void WriteRawByte(ref Span<byte> buffer, ref WriterInternalState state, byte value) in WriteRawByte()
409 WriteBufferHelper.RefreshBuffer(ref buffer, ref state); in WriteRawByte()
418 …public static void WriteRawBytes(ref Span<byte> buffer, ref WriterInternalState state, byte[] valu… in WriteRawBytes()
420 WriteRawBytes(ref buffer, ref state, new ReadOnlySpan<byte>(value)); in WriteRawBytes()
426 …public static void WriteRawBytes(ref Span<byte> buffer, ref WriterInternalState state, byte[] valu… in WriteRawBytes()
428 WriteRawBytes(ref buffer, ref state, new ReadOnlySpan<byte>(value, offset, length)); in WriteRawBytes()
434 …public static void WriteRawBytes(ref Span<byte> buffer, ref WriterInternalState state, ReadOnlySpa… in WriteRawBytes()
457 WriteBufferHelper.RefreshBuffer(ref buffer, ref state); in WriteRawBytes()
472 …public static void WriteTag(ref Span<byte> buffer, ref WriterInternalState state, int fieldNumber,… in WriteTag()
474 WriteRawVarint32(ref buffer, ref state, WireFormat.MakeTag(fieldNumber, type)); in WriteTag()
480 public static void WriteTag(ref Span<byte> buffer, ref WriterInternalState state, uint tag) in WriteTag()
482 WriteRawVarint32(ref buffer, ref state, tag); in WriteTag()
488 … public static void WriteRawTag(ref Span<byte> buffer, ref WriterInternalState state, byte b1) in WriteRawTag()
490 WriteRawByte(ref buffer, ref state, b1); in WriteRawTag()
496 …public static void WriteRawTag(ref Span<byte> buffer, ref WriterInternalState state, byte b1, byte… in WriteRawTag()
500 WriteRawTagSlowPath(ref buffer, ref state, b1, b2); in WriteRawTag()
510 …private static void WriteRawTagSlowPath(ref Span<byte> buffer, ref WriterInternalState state, byte… in WriteRawTagSlowPath()
512 WriteRawByte(ref buffer, ref state, b1); in WriteRawTagSlowPath()
513 WriteRawByte(ref buffer, ref state, b2); in WriteRawTagSlowPath()
519 …public static void WriteRawTag(ref Span<byte> buffer, ref WriterInternalState state, byte b1, byte… in WriteRawTag()
523 WriteRawTagSlowPath(ref buffer, ref state, b1, b2, b3); in WriteRawTag()
534 …private static void WriteRawTagSlowPath(ref Span<byte> buffer, ref WriterInternalState state, byte… in WriteRawTagSlowPath()
536 WriteRawByte(ref buffer, ref state, b1); in WriteRawTagSlowPath()
537 WriteRawByte(ref buffer, ref state, b2); in WriteRawTagSlowPath()
538 WriteRawByte(ref buffer, ref state, b3); in WriteRawTagSlowPath()
544 …public static void WriteRawTag(ref Span<byte> buffer, ref WriterInternalState state, byte b1, byte… in WriteRawTag()
548 WriteRawTagSlowPath(ref buffer, ref state, b1, b2, b3, b4); in WriteRawTag()
561 …private static void WriteRawTagSlowPath(ref Span<byte> buffer, ref WriterInternalState state, byte… in WriteRawTagSlowPath()
563 WriteRawByte(ref buffer, ref state, b1); in WriteRawTagSlowPath()
564 WriteRawByte(ref buffer, ref state, b2); in WriteRawTagSlowPath()
565 WriteRawByte(ref buffer, ref state, b3); in WriteRawTagSlowPath()
566 WriteRawByte(ref buffer, ref state, b4); in WriteRawTagSlowPath()
572 …public static void WriteRawTag(ref Span<byte> buffer, ref WriterInternalState state, byte b1, byte… in WriteRawTag()
576 WriteRawTagSlowPath(ref buffer, ref state, b1, b2, b3, b4, b5); in WriteRawTag()
589 …private static void WriteRawTagSlowPath(ref Span<byte> buffer, ref WriterInternalState state, byte… in WriteRawTagSlowPath()
591 WriteRawByte(ref buffer, ref state, b1); in WriteRawTagSlowPath()
592 WriteRawByte(ref buffer, ref state, b2); in WriteRawTagSlowPath()
593 WriteRawByte(ref buffer, ref state, b3); in WriteRawTagSlowPath()
594 WriteRawByte(ref buffer, ref state, b4); in WriteRawTagSlowPath()
595 WriteRawByte(ref buffer, ref state, b5); in WriteRawTagSlowPath()