converted buffer to me memoryview