188.8.131.52 ClustersFromBytes -- Macro to Determine How Many 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:
ClustersFromBytes(ThisVolume, Bytes) = (Bytes + (ThisVolume.ClusterSize - 1)) / ThisVolume.ClusterSize.
The value returned is the total number of clusters required to hold the specified number of bytes that start at a cluster boundary, including any remainder that does not fill a whole cluster.