when the mapping size is zero, map all the way to the end of the buffer