convert ubyte[k..k + 1] to int

ref2401 refactor24 at gmail.com
Wed May 16 07:24:33 PDT 2012


i have an array of ubytes. how can i convert two adjacent ubytes 
from the array to an integer?

pseudocode example:
ubyte[5] array = createArray();
int value = array[2..3];

is there any 'memcpy' method or something else to do this?


More information about the Digitalmars-d-learn mailing list