MemoryViewが使える時はそれを使い、後に解放する。
使えない時はmallocし、後に解放する。
という状況なので、rb_alloc_tmp_bufferではだめで、やはりrb_ensureなのか・・・
MemoryViewが使える時はそれを使い、後に解放する。
使えない時はmallocし、後に解放する。
という状況なので、rb_alloc_tmp_bufferではだめで、やはりrb_ensureなのか・・・
If you have a fediverse account, you can quote this note from your own instance. Search https://bookwor.ms/users/KitaitiMakoto/statuses/115972973501863567 on your instance and quote it. (Note that quoting is not supported in Mastodon.)