@@ -338,7 +338,7 @@ protected internal byte[] ReadCluster(long clusterLCN)
338338 return ReadClusters ( clusterLCN , 1 ) ;
339339 }
340340
341- protected internal byte [ ] ReadClusters ( long clusterLCN , int count )
341+ protected internal virtual byte [ ] ReadClusters ( long clusterLCN , int count )
342342 {
343343 long firstSectorIndex = clusterLCN * m_bootRecord . SectorsPerCluster ;
344344 int sectorsToRead = m_bootRecord . SectorsPerCluster * count ;
@@ -348,18 +348,18 @@ protected internal byte[] ReadClusters(long clusterLCN, int count)
348348 return result ;
349349 }
350350
351- protected internal void WriteClusters ( long clusterLCN , byte [ ] data )
351+ protected internal virtual void WriteClusters ( long clusterLCN , byte [ ] data )
352352 {
353353 long firstSectorIndex = clusterLCN * m_bootRecord . SectorsPerCluster ;
354354 m_volume . WriteSectors ( firstSectorIndex , data ) ;
355355 }
356356
357- protected internal byte [ ] ReadSectors ( long sectorIndex , int sectorCount )
357+ protected internal virtual byte [ ] ReadSectors ( long sectorIndex , int sectorCount )
358358 {
359359 return m_volume . ReadSectors ( sectorIndex , sectorCount ) ;
360360 }
361361
362- protected internal void WriteSectors ( long sectorIndex , byte [ ] data )
362+ protected internal virtual void WriteSectors ( long sectorIndex , byte [ ] data )
363363 {
364364 m_volume . WriteSectors ( sectorIndex , data ) ;
365365 }
@@ -505,43 +505,43 @@ internal NTFSBootRecord BootRecord
505505 }
506506 }
507507
508- internal int BytesPerCluster
508+ protected internal int BytesPerCluster
509509 {
510510 get
511511 {
512512 return m_bootRecord . BytesPerCluster ;
513513 }
514514 }
515515
516- internal int BytesPerSector
516+ protected internal int BytesPerSector
517517 {
518518 get
519519 {
520520 return m_bootRecord . BytesPerSector ;
521521 }
522522 }
523523
524- internal int BytesPerFileRecordSegment
524+ protected internal int SectorsPerCluster
525525 {
526526 get
527527 {
528- return m_bootRecord . BytesPerFileRecordSegment ;
528+ return m_bootRecord . SectorsPerCluster ;
529529 }
530530 }
531531
532- internal int BytesPerIndexRecord
532+ internal int BytesPerFileRecordSegment
533533 {
534534 get
535535 {
536- return m_bootRecord . BytesPerIndexRecord ;
536+ return m_bootRecord . BytesPerFileRecordSegment ;
537537 }
538538 }
539539
540- internal int SectorsPerCluster
540+ internal int BytesPerIndexRecord
541541 {
542542 get
543543 {
544- return m_bootRecord . SectorsPerCluster ;
544+ return m_bootRecord . BytesPerIndexRecord ;
545545 }
546546 }
547547
0 commit comments