|
@@ -46,6 +46,8 @@ namespace Google.Protobuf
|
|
|
[SecuritySafeCritical]
|
|
|
internal static class ParsingPrimitivesMessages
|
|
|
{
|
|
|
+ private static readonly byte[] ZeroLengthMessageStreamData = new byte[] { 0 };
|
|
|
+
|
|
|
public static void SkipLastField(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state)
|
|
|
{
|
|
|
if (state.lastTag == 0)
|
|
@@ -136,8 +138,6 @@ namespace Google.Protobuf
|
|
|
SegmentedBufferHelper.PopLimit(ref ctx.state, oldLimit);
|
|
|
}
|
|
|
|
|
|
- private static readonly byte[] ZeroLengthMessageStreamData = new byte[] { 0 };
|
|
|
-
|
|
|
public static KeyValuePair<TKey, TValue> ReadMapEntry<TKey, TValue>(ref ParseContext ctx, MapField<TKey, TValue>.Codec codec)
|
|
|
{
|
|
|
int length = ParsingPrimitives.ParseLength(ref ctx.buffer, ref ctx.state);
|