2.1.4.8 ClustersFromBytesTruncate -- Macro to Determine How Many Whole Clusters a Given Number of Bytes Occupies

The inputs for this algorithm are:

  • ThisVolume: A Volume.

  • Bytes: The number of bytes.

Pseudocode for the algorithm is as follows:

  • ClustersFromBytesTruncate(ThisVolume, Bytes) = Bytes / ThisVolume.ClusterSize.

  • The value returned is the number of clusters that would be fully occupied by the specified number of bytes that start at a cluster boundary. Any remainder that does not fill a whole cluster is discarded.

Show: