Add API for reading bytes from Memory