         buffer: ResizableBuffer
     ) {
         guard
-            let paddedRowCount = _padCount(
-                rowCount, toAlignment: countAlignment
-            ),
-            let paddedColumnCount = _padCount(
-                columnCount, toAlignment: countAlignment
-            ),
+            let paddedRowCount = rowCount.paddedToAlignment(countAlignment),
+            let paddedColumnCount = columnCount.paddedToAlignment(countAlignment),
             let byteCount = _byteCountForPaddedRowCount(
                 paddedRowCount, paddedColumnCount: paddedColumnCount
             ) where buffer.resizeToLength(byteCount)



// MARK: - Private
private func _padCount(count: Int, toAlignment alignment: Int) -> Int? {
    guard count > 0 && alignment > 0 else { return nil }
    
    let remainder = count % alignment
    guard remainder > 0 else { return count }
    
    return count + alignment - remainder
}

private func _byteCountForPaddedRowCount(

        else { return true }
        
        guard
            let newPaddedRowCount =
                newRowCount.paddedToAlignment(countAlignment),
            let newPaddedColumnCount =
                newColumnCount.paddedToAlignment(countAlignment),
            let newByteCount = _byteCountForPaddedRowCount(
                newPaddedRowCount, paddedColumnCount: newPaddedColumnCount
            )
