digitalmars.D.learn - What does it mean void[]?
- Orfeo (8/8) Nov 15 2013 I have found in the module
- Sergei Nosov (3/11) Nov 15 2013 It's semantics is "an array of octets". Similar, to "void *" in
I have found in the module https://github.com/NCrashed/serial-port/blob/master/source/serial/device.d this function: void write(const(void[]) arr) { ... What exactly is void[]? An array of pointers? An array of "anything"? Thank you
Nov 15 2013
On Friday, 15 November 2013 at 09:19:04 UTC, Orfeo wrote:I have found in the module https://github.com/NCrashed/serial-port/blob/master/source/serial/device.d this function: void write(const(void[]) arr) { ... What exactly is void[]? An array of pointers? An array of "anything"? Thank youIt's semantics is "an array of octets". Similar, to "void *" in C++, except, the overall length in bytes is known.
Nov 15 2013