Jak scalić 2 bajty w liczbę całkowitą

int number = buf[0] | buf[1] << 8;
Elegant Earthworm