wrapping a void* by a ubyte[] array?

Daniel Murphy yebblies at nospamgmail.com
Thu Jul 14 08:16:03 PDT 2011


Cast to ubyte* and slice?

ubyte[] array = (cast(ubyte*)pointer)[0..length];

"teo" <teo.ubuntu at yahoo.com> wrote in message 
news:ivn0n8$14ig$1 at digitalmars.com...
> Is there any way of wrapping a void* by a ubyte[] array? The void* comes
> from mmap. 




More information about the Digitalmars-d-learn mailing list