File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
DiskAccessLibrary/FileSystems/NTFS/AttributeData Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- /* Copyright (C) 2018 Tal Aloni <[email protected] >. All rights reserved. 1+ /* Copyright (C) 2018-2019 Tal Aloni <[email protected] >. All rights reserved. 22 *
33 * You can redistribute this program and/or modify it under the terms of
44 * the GNU Lesser Public License as published by the Free Software Foundation,
@@ -111,15 +111,15 @@ public void ExtendBitmap(long numberOfBits)
111111 ExtendBitmap ( numberOfBits , false ) ;
112112 }
113113
114- /// <param name="prewriteBytes ">True to zero out the extension in advance, False to rely on ValidDataLength</param>
115- internal void ExtendBitmap ( long numberOfBits , bool prewriteBytes )
114+ /// <param name="zeroOutExtensionInAdvance ">True to zero out the extension in advance, False to rely on ValidDataLength</param>
115+ internal void ExtendBitmap ( long numberOfBits , bool zeroOutExtensionInAdvance )
116116 {
117117 long numberOfUnusedBits = ( long ) ( this . Length * 8 - ( ulong ) m_numberOfUsableBits ) ;
118118 if ( numberOfBits > numberOfUnusedBits )
119119 {
120120 long additionalBits = numberOfBits - numberOfUnusedBits ;
121121 ulong additionalBytes = ( ulong ) ( Math . Ceiling ( ( double ) additionalBits / ( ExtendGranularity * 8 ) ) * ExtendGranularity ) ;
122- if ( prewriteBytes )
122+ if ( zeroOutExtensionInAdvance )
123123 {
124124 this . WriteBytes ( this . Length , new byte [ additionalBytes ] ) ;
125125 }
You can’t perform that action at this time.
0 commit comments