numberOfPages

fun numberOfPages(totalSize: Int, pageSize: Int): Int

Calculates the number of pages based on the total size and page size.

Return

The number of pages.

Parameters

totalSize

The total size of the data.

pageSize

The size of each page.