@@ -217,9 +217,9 @@ public unsafe int Seek(ref Vector<byte> byte0Vector)
217
217
return - 1 ;
218
218
}
219
219
220
- var following = _block. End - _index ;
221
220
var block = _block;
222
221
var index = _index ;
222
+ var following = block. End - index ;
223
223
byte [ ] array ;
224
224
var byte0 = byte0Vector[ 0 ] ;
225
225
@@ -264,9 +264,9 @@ public unsafe int Seek(ref Vector<byte> byte0Vector)
264
264
#if ! DEBUG // Need unit tests to test Vector path
265
265
}
266
266
#endif
267
- fixed ( byte * ptr = block. Array )
267
+ fixed ( byte * ptr = & block. Array [ index ] )
268
268
{
269
- var pCurrent = ptr + index ;
269
+ var pCurrent = ptr ;
270
270
var pEnd = pCurrent + following ;
271
271
do
272
272
{
@@ -294,9 +294,9 @@ public unsafe int Seek(ref Vector<byte> byte0Vector, ref Vector<byte> byte1Vecto
294
294
return - 1 ;
295
295
}
296
296
297
- var following = _block. End - _index ;
298
297
var block = _block;
299
298
var index = _index ;
299
+ var following = block. End - index ;
300
300
byte [ ] array;
301
301
int byte0Index = int . MaxValue ;
302
302
int byte1Index = int . MaxValue ;
@@ -363,9 +363,9 @@ public unsafe int Seek(ref Vector<byte> byte0Vector, ref Vector<byte> byte1Vecto
363
363
#if ! DEBUG // Need unit tests to test Vector path
364
364
}
365
365
#endif
366
- fixed ( byte * ptr = block . Array )
366
+ fixed ( byte * ptr = & block . Array [ index ] )
367
367
{
368
- var pCurrent = ptr + index ;
368
+ var pCurrent = ptr;
369
369
var pEnd = pCurrent + following;
370
370
do
371
371
{
@@ -399,9 +399,9 @@ public unsafe int Seek(ref Vector<byte> byte0Vector, ref Vector<byte> byte1Vecto
399
399
return - 1 ;
400
400
}
401
401
402
- var following = _block. End - _index ;
403
402
var block = _block;
404
403
var index = _index ;
404
+ var following = block. End - index ;
405
405
byte [ ] array;
406
406
int byte0Index = int . MaxValue ;
407
407
int byte1Index = int . MaxValue ;
@@ -496,9 +496,9 @@ public unsafe int Seek(ref Vector<byte> byte0Vector, ref Vector<byte> byte1Vecto
496
496
#if ! DEBUG // Need unit tests to test Vector path
497
497
}
498
498
#endif
499
- fixed ( byte * ptr = block . Array )
499
+ fixed ( byte * ptr = & block . Array [ index ] )
500
500
{
501
- var pCurrent = ptr + index ;
501
+ var pCurrent = ptr;
502
502
var pEnd = pCurrent + following;
503
503
do
504
504
{
0 commit comments