Not sure if I understand, but you can use static_cast the first byte to uint, and then mask 7th bit.