Used to map/unmap a buffer automatically and provide a RAII exception-safe class Former-commit-id: 2a4fd2e19ce3531639a86520876a3615846b27f4