simplified __getbuffer__