November 15, 2013 What does it mean void[]? | ||||
---|---|---|---|---|
| ||||
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 |
November 15, 2013 Re: What does it mean void[]? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Orfeo | 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.
|
Copyright © 1999-2021 by the D Language Foundation