Pool.numPages

size_t numPages(size_t size) nothrow @nogc

Return number of pages necessary for an allocation of the given size

returns size_t.max if more than uint.max pages are requested (return type is still size_t to avoid truncation when being used in calculations, e.g. npages * PAGESIZE)