mardi 5 octobre 2021

what does variable != 0xFF mean in C++?

I have the following if function that has a condition on an array of a data buffer, which stores data of a wav file

bool BFoundEnd = FALSE;

if (UCBuffer[ICount] != 0xFF){
    BFoundEnd = TRUE; 
                break;
            }

I was just confused on how 0xFF defines the condition inside the if function.

Aucun commentaire:

Enregistrer un commentaire