static private decode_int ( byte packet, int &offset ) : int | ||
packet | byte | |
offset | int | |
return | int |
static int decode_int (byte[] packet, ref int offset) {
int res = ((int)packet [offset] << 24) | ((int)packet [offset + 1] << 16) | ((int)packet [offset + 2] << 8) | (int)packet [offset + 3];
offset += 4;
return res;
}