byte2register static method
Implementation
static Uint16List byte2register(Uint8List byte){
assert(byte.length % 2 == 0);
int len = byte.length ~/ 2;
Uint16List todata = Uint16List( len);
for (int i=0; i< len; i++){
todata[i] = byte[i*2] << 8 | byte[i*2+1];
}
return todata;
}