The buffer is a byte array containing 7 bytes
The number is 1234567 The hex value is 0x12d687
The goal is to put the last 4 digits of the hex val