Hello. I have the following function written in pseudo code. I think the pseudo code is more C than java and my C has about 10 years of rust on it. Can anyone help me decipher it?

UINT function(BYTE* header) 
{
    UINT length;

    header = header + 1;
    length = ((UINT16) header[0]) OR ((UINT16) header[1] << 8);

    return length;
}

Recommended Answers

All 2 Replies

Looks more like C to me, definitely not Java. Try the C forum.

Thanks I will do that.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.