mem.h: switch doxygen parameter order to match function prototype