Lines Matching defs:WriteContext
24 public ref struct WriteContext struct
26 internal Span<byte> buffer;
27 internal WriterInternalState state;
30 … static void Initialize(ref Span<byte> buffer, ref WriterInternalState state, out WriteContext ctx) in Initialize()
42 internal static void Initialize(CodedOutputStream output, out WriteContext ctx) in Initialize()
52 internal static void Initialize(IBufferWriter<byte> output, out WriteContext ctx) in Initialize()
62 internal static void Initialize(ref Span<byte> buffer, out WriteContext ctx) in Initialize()
75 …blic void WriteDouble(double value) => WritingPrimitives.WriteDouble(ref buffer, ref state, value); in WriteDouble()
81 … public void WriteFloat(float value) => WritingPrimitives.WriteFloat(ref buffer, ref state, value); in WriteFloat()
87 …ublic void WriteUInt64(ulong value) => WritingPrimitives.WriteUInt64(ref buffer, ref state, value); in WriteUInt64()
93 … public void WriteInt64(long value) => WritingPrimitives.WriteInt64(ref buffer, ref state, value); in WriteInt64()
99 … public void WriteInt32(int value) => WritingPrimitives.WriteInt32(ref buffer, ref state, value); in WriteInt32()
105 …lic void WriteFixed64(ulong value) => WritingPrimitives.WriteFixed64(ref buffer, ref state, value); in WriteFixed64()
111 …blic void WriteFixed32(uint value) => WritingPrimitives.WriteFixed32(ref buffer, ref state, value); in WriteFixed32()
117 … public void WriteBool(bool value) => WritingPrimitives.WriteBool(ref buffer, ref state, value);
124 …blic void WriteString(string value) => WritingPrimitives.WriteString(ref buffer, ref state, value); in WriteString()
131 …ublic void WriteMessage(IMessage value) => WritingPrimitivesMessages.WriteMessage(ref this, value);
137 … public void WriteGroup(IMessage value) => WritingPrimitivesMessages.WriteGroup(ref this, value);
144 …ic void WriteBytes(ByteString value) => WritingPrimitives.WriteBytes(ref buffer, ref state, value);
150 …public void WriteUInt32(uint value) => WritingPrimitives.WriteUInt32(ref buffer, ref state, value); in WriteUInt32()
156 … public void WriteEnum(int value) => WritingPrimitives.WriteEnum(ref buffer, ref state, value); in WriteEnum()
162 …lic void WriteSFixed32(int value) => WritingPrimitives.WriteSFixed32(ref buffer, ref state, value); in WriteSFixed32()
168 …ic void WriteSFixed64(long value) => WritingPrimitives.WriteSFixed64(ref buffer, ref state, value); in WriteSFixed64()
174 … public void WriteSInt32(int value) => WritingPrimitives.WriteSInt32(ref buffer, ref state, value); in WriteSInt32()
180 …public void WriteSInt64(long value) => WritingPrimitives.WriteSInt64(ref buffer, ref state, value); in WriteSInt64()
189 …ublic void WriteLength(int length) => WritingPrimitives.WriteLength(ref buffer, ref state, length); in WriteLength()
196 … WireFormat.WireType type) => WritingPrimitives.WriteTag(ref buffer, ref state, fieldNumber, type); in WriteTag()
202 public void WriteTag(uint tag) => WritingPrimitives.WriteTag(ref buffer, ref state, tag); in WriteTag()
208 … public void WriteRawTag(byte b1) => WritingPrimitives.WriteRawTag(ref buffer, ref state, b1);
215 …void WriteRawTag(byte b1, byte b2) => WritingPrimitives.WriteRawTag(ref buffer, ref state, b1, b2); in WriteRawTag()
223 …Tag(byte b1, byte b2, byte b3) => WritingPrimitives.WriteRawTag(ref buffer, ref state, b1, b2, b3); in WriteRawTag()
232 …byte b2, byte b3, byte b4) => WritingPrimitives.WriteRawTag(ref buffer, ref state, b1, b2, b3, b4); in WriteRawTag()
242 … b3, byte b4, byte b5) => WritingPrimitives.WriteRawTag(ref buffer, ref state, b1, b2, b3, b4, b5); in WriteRawTag()
244 internal void Flush() => WriteBufferHelper.Flush(ref buffer, ref state); in Flush()
246 internal void CheckNoSpaceLeft() => WriteBufferHelper.CheckNoSpaceLeft(ref state); in CheckNoSpaceLeft()
248 internal void CopyStateTo(CodedOutputStream output) in CopyStateTo()
253 internal void LoadStateFrom(CodedOutputStream output) in LoadStateFrom()