void[] vs byte[]

Yao G. yao.gomez at spam.gmail.com
Sat Aug 28 12:41:57 PDT 2010


I'm here with another n00b question:

When dealing with big buffers (or files), which is better to use as  
storage? void[] or byte[]?

What are the advantages and disadvantages of each one? I've seen that  
void[] is used in some Phobos modules, like std.zlib, and in other modules  
the choice is byte[] (chunk in std.stdio).

Is there a place where this stuff is documented? Or choosing one or  
another is just a matter of preference and the differences are trivial?

Thanks in advance.


-- 
Yao G.


More information about the Digitalmars-d-learn mailing list