cast

Boris Shomodjvarac shomodj.N at SPAM.slashmail.org
Fri Nov 17 05:01:50 PST 2006


Hi,

I have a array of ubyte-s and need to cast for example from 4-th element
to 8-th element into int, anyone knows how to do that? 

example:

ubyte buffer[1024];

listener.receiveFrom(buffer, address);

writefln("Transaction ID: %s", cast(int)buffer[4 .. 8]);


Thanks.



More information about the Digitalmars-d-learn mailing list