start: inline the memory helper functions