Lines Matching refs:ctx
62 internal static void Initialize(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state, out ParseContext ctx)
64 ctx.buffer = buffer;
65 ctx.state = state;
74 internal static void Initialize(CodedInputStream input, out ParseContext ctx)
76 ctx.buffer = new ReadOnlySpan<byte>(input.InternalBuffer);
80 ctx.state = input.InternalState;
84 internal static void Initialize(ReadOnlySequence<byte> input, out ParseContext ctx)
86 Initialize(input, DefaultRecursionLimit, out ctx);
90 internal static void Initialize(ReadOnlySequence<byte> input, int recursionLimit, out ParseContext ctx)
92 ctx.buffer = default;
93 ctx.state = default;
94 ctx.state.lastTag = 0;
95 ctx.state.recursionDepth = 0;
96 ctx.state.sizeLimit = DefaultSizeLimit;
97 ctx.state.recursionLimit = recursionLimit;
98 ctx.state.currentLimit = int.MaxValue;
99 SegmentedBufferHelper.Initialize(input, out ctx.state.segmentedBufferHelper, out ctx.buffer);
100 ctx.state.bufferPos = 0;
101 ctx.state.bufferSize = ctx.buffer.Length;
103 ctx.state.DiscardUnknownFields = false;
104 ctx.state.ExtensionRegistry = null;