going through the buffer interface API. Added tests for this to the _testcapi module and updated docs.