Added implementation of `fromMmap`