Is there a general rule as to when I should use void[] instead of ubyte[]? Is either preferred?
void[] for data that may contain pointers, byte[] for data that's actually just data, like network buffers or files. (I realize Phobos is inconsistent on this)
The reasoning is that the GC scans void[]s for pointers, but not ubyte[]s.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With