You can use `|` instead of `+` here. Also, please use in.readUnsignedByte() so that you don't need to do `& 0xff` yourself.