On Tuesday, 19 April 2022 at 06:05:27 UTC, Ali Çehreli wrote:
int i = 42;file.rawWrite(*cast((int[1]*)(&i))); // Casted to be an array of 1
I assume since we don't have a rawWriteValue, that it's rarely needed.
However it should be fairly trivial like:
void rawWriteValue(T)(T value)
{
rawWrite(*cast((T[1]*)(&value)));
}
Or is there some downside to this that I'm missing?
