Replaced ReadMem implementation with stdlib bytes.Reader