Add support for mapping ranges of the buffer