@@ -177,9 +177,9 @@ public unsafe int Seek(ref Vector<byte> byte0Vector)
177
177
return - 1 ;
178
178
}
179
179
180
- var following = _block. End - _index ;
181
180
var block = _block;
182
181
var index = _index ;
182
+ var following = block. End - index ;
183
183
byte [ ] array ;
184
184
var byte0 = byte0Vector[ 0 ] ;
185
185
@@ -224,9 +224,9 @@ public unsafe int Seek(ref Vector<byte> byte0Vector)
224
224
#if ! DEBUG // Need unit tests to test Vector path
225
225
}
226
226
#endif
227
- fixed ( byte * ptr = block. Array )
227
+ fixed ( byte * ptr = & block. Array [ index ] )
228
228
{
229
- var pCurrent = ptr + index ;
229
+ var pCurrent = ptr ;
230
230
var pEnd = pCurrent + following ;
231
231
do
232
232
{
@@ -254,9 +254,9 @@ public unsafe int Seek(ref Vector<byte> byte0Vector, ref Vector<byte> byte1Vecto
254
254
return - 1 ;
255
255
}
256
256
257
- var following = _block. End - _index ;
258
257
var block = _block;
259
258
var index = _index ;
259
+ var following = block. End - index ;
260
260
byte [ ] array;
261
261
int byte0Index = int . MaxValue ;
262
262
int byte1Index = int . MaxValue ;
@@ -323,9 +323,9 @@ public unsafe int Seek(ref Vector<byte> byte0Vector, ref Vector<byte> byte1Vecto
323
323
#if ! DEBUG // Need unit tests to test Vector path
324
324
}
325
325
#endif
326
- fixed ( byte * ptr = block . Array )
326
+ fixed ( byte * ptr = & block . Array [ index ] )
327
327
{
328
- var pCurrent = ptr + index ;
328
+ var pCurrent = ptr;
329
329
var pEnd = pCurrent + following;
330
330
do
331
331
{
@@ -359,9 +359,9 @@ public unsafe int Seek(ref Vector<byte> byte0Vector, ref Vector<byte> byte1Vecto
359
359
return - 1 ;
360
360
}
361
361
362
- var following = _block. End - _index ;
363
362
var block = _block;
364
363
var index = _index ;
364
+ var following = block. End - index ;
365
365
byte [ ] array;
366
366
int byte0Index = int . MaxValue ;
367
367
int byte1Index = int . MaxValue ;
@@ -456,9 +456,9 @@ public unsafe int Seek(ref Vector<byte> byte0Vector, ref Vector<byte> byte1Vecto
456
456
#if ! DEBUG // Need unit tests to test Vector path
457
457
}
458
458
#endif
459
- fixed ( byte * ptr = block . Array )
459
+ fixed ( byte * ptr = & block . Array [ index ] )
460
460
{
461
- var pCurrent = ptr + index ;
461
+ var pCurrent = ptr;
462
462
var pEnd = pCurrent + following;
463
463
do
464
464
{
0 commit comments