if (fwrite(&tokenCount, sizeof(tokenCount), 1, stream) != 1)
if (writeUInt32(stream, tokenCount) != 1)
static bool writeTokens(FILE* stream, Tokenizer& tokenizer){    PRUint32 tokenCount = tokenizer.countTokens();    if (fwrite(&tokenCount, sizeof(tokenCount), 1, stream) != 1)        return false;    if (tokenCount > 0) {        Token ** tokens = tokenizer.getTokens();        if (!tokens) return false;                for (PRUint32 i = 0; i < tokenCount; ++i) {            Token* token = tokens[i];            PRUint32 count = token->mCount;            if (fwrite(&count, sizeof(count), 1, stream) != 1)                break;            PRUint32 size = token->mWord.Length();            if (fwrite(&size, sizeof(size), 1, stream) != 1)                break;            if (fwrite(token->mWord.get(), size, 1, stream) != 1)                break;        }                delete[] tokens;    }        return true;}