On Fri Aug 25 11:17:28 2023 +0000, David Kahurani wrote:
I'm looking at this and thinking that that `sizeof(T)` might not always give the correct size for the buffer, especially if the buffer is an array. I don't know what exactly is required but I thought I should note this.
When this function is used, buffer is actually likely a pointer to an POD, so T is the POD type and sizeof(T) the correct size. It's just some convenience helpers for C++.