 
 
 // 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 extension Int {
+
+    func paddedToAlignment(alignment: Int) -> Int? {
+        guard self > 0 && alignment > 0 else { return nil }
+        
+        let remainder = self % alignment
+        guard remainder > 0 else { return self }
+        
+        return self + alignment - remainder
+    }
+
 }
 
 private func _byteCountForPaddedRowCount(

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

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