memdata is a pointer