unpack static method
This function unpacks the data to the requested format
Implementation
static int unpack(String format,Uint8List value){
if(format == '<I'){
return value.buffer.asInt32List()[0];
}
else if(format == '<b'){
return value.buffer.asInt8List()[0];
}
else{
throw('here');
}
}