Wie man 2 Bytes in eine Ganzzahl zusammenfasst

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