nl_tokens: / * Convert a number of bytes to a value and units . The units are the powers of 1024 . For instance 4096 will result in ( 4 1 ) .
pl_tokens: function sizeToValueAndUnits ( sizeValue ) { <mask> sizeUnits = 0 ; if ( sizeValue ) { for ( sizeUnits = 0 ; sizeUnits < 4 && parseInt ( sizeValue / 1024 , 10 ) * 1024 === sizeValue ; sizeUnits += 1 ) { sizeValue /= 1024 ; } } else { sizeValue = '' ; } return { sizeUnits : sizeUnits , sizeValue : sizeValue } ; }