wrapping a void* by a ubyte[] array?

Simen Kjaeraas simen.kjaras at gmail.com
Thu Jul 14 08:15:46 PDT 2011


On Thu, 14 Jul 2011 17:07:20 +0200, teo <teo.ubuntu at yahoo.com> wrote:

> Is there any way of wrapping a void* by a ubyte[] array? The void* comes
> from mmap.

byte[] array = cast(ubyte[])mmap(addr, length, ...)[0..length;]

-- 
   Simen


More information about the Digitalmars-d-learn mailing list