What does it mean void[]?
Sergei Nosov
sergei.nosov at gmail.com
Fri Nov 15 01:34:58 PST 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 you
It's semantics is "an array of octets". Similar, to "void *" in
C++, except, the overall length in bytes is known.
More information about the Digitalmars-d-learn
mailing list