Sum the pages offset on the size of the buffer