This would be `buffer.ptr` in D, but casting works in both languages.