Map locally for a buffer