You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -61,7 +59,7 @@ public int PeekNumberOfItemsRemaining(int? beforePosition = null, int maxSearch
61
59
}
62
60
else
63
61
{
64
-
Position--;
62
+
_position--;
65
63
intsequenceLength=ReadSequenceLength();
66
64
SkipBytes(sequenceLength);
67
65
}
@@ -73,7 +71,7 @@ public int PeekNumberOfItemsRemaining(int? beforePosition = null, int maxSearch
73
71
}
74
72
}
75
73
76
-
Position=positionStored;
74
+
_position=positionStored;
77
75
returnnumberOfItems;
78
76
}
79
77
@@ -157,7 +155,7 @@ public int ReadSequenceLength()
157
155
if(prefix<192)
158
156
{
159
157
thrownewRlpException(
160
-
$"Expected a sequence prefix to be in the range of <192, 255> and got {prefix} at position {Position} in the message of length {Length} starting with {Description}");
158
+
$"Expected a sequence prefix to be in the range of <192, 255> and got {prefix} at position {_position} in the message of length {Data.Length} starting with {Description}");
@@ -302,10 +300,10 @@ public Span<byte> Read(int length)
302
300
if(prefix!=128+32)
303
301
{
304
302
thrownewRlpException(
305
-
$"Unexpected prefix of {prefix} when decoding {nameof(Hash256)} at position {Position} in the message of length {Length} starting with {Description}");
303
+
$"Unexpected prefix of {prefix} when decoding {nameof(Hash256)} at position {_position} in the message of length {Data.Length} starting with {Description}");
@@ -331,28 +329,28 @@ public bool DecodeValueKeccak(out ValueHash256 keccak)
331
329
if(prefix!=128+32)
332
330
{
333
331
thrownewRlpException(
334
-
$"Unexpected prefix of {prefix} when decoding {nameof(Hash256)} at position {Position} in the message of length {Length} starting with {Description}");
332
+
$"Unexpected prefix of {prefix} when decoding {nameof(Hash256)} at position {_position} in the message of length {Data.Length} starting with {Description}");
0 commit comments