On Windows 10, `set_buffer` can take upwards of 15-20 ms, which is noticeably slow. Perhaps a no-copy API could be introduced to mitigate this.