Simplify memrw().

MFC after:	10 days