@@ -111,18 +111,18 @@ static bool CanParse(byte code, int pos, ReadOnlySpan<byte> buffer)
111
111
112
112
private static CursorPageInfo ParsePageInfo ( ref Span < byte > span )
113
113
{
114
- const byte Open = ( byte ) '{' ;
115
- const byte Close = ( byte ) '}' ;
116
- const byte Separator = ( byte ) '|' ;
114
+ const byte open = ( byte ) '{' ;
115
+ const byte close = ( byte ) '}' ;
116
+ const byte separator = ( byte ) '|' ;
117
117
118
118
// Validate input: must start with `{` and end with `}`
119
- if ( span . Length < 2 || span [ 0 ] != Open )
119
+ if ( span . Length < 2 || span [ 0 ] != open )
120
120
{
121
121
return default ;
122
122
}
123
123
124
124
// the page info is empty
125
- if ( span [ 0 ] == Open && span [ 1 ] == Close )
125
+ if ( span [ 0 ] == open && span [ 1 ] == close )
126
126
{
127
127
span = span [ 2 ..] ;
128
128
return default ;
@@ -131,17 +131,17 @@ private static CursorPageInfo ParsePageInfo(ref Span<byte> span)
131
131
// Advance span beyond opening `{`
132
132
span = span [ 1 ..] ;
133
133
134
- var separatorIndex = ExpectSeparator ( span , Separator ) ;
134
+ var separatorIndex = ExpectSeparator ( span , separator ) ;
135
135
var part = span [ ..separatorIndex ] ;
136
136
ParseNumber ( part , out var offset , out var consumed ) ;
137
137
var start = separatorIndex + 1 ;
138
138
139
- separatorIndex = ExpectSeparator ( span [ start ..] , Separator ) ;
139
+ separatorIndex = ExpectSeparator ( span [ start ..] , separator ) ;
140
140
part = span . Slice ( start , separatorIndex ) ;
141
141
ParseNumber ( part , out var page , out consumed ) ;
142
142
start += separatorIndex + 1 ;
143
143
144
- separatorIndex = ExpectSeparator ( span [ start ..] , Close ) ;
144
+ separatorIndex = ExpectSeparator ( span [ start ..] , close ) ;
145
145
part = span . Slice ( start , separatorIndex ) ;
146
146
ParseNumber ( part , out var totalCount , out consumed ) ;
147
147
start += separatorIndex + 1 ;
0 commit comments