Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Sep 2013

    How to decode 32-bit unsigned integer, big endian???


    I want to read 4 bytes which are a big-endian encoding of an unsigned 32-bit integer.

    How to decode that?

    I search lot of on net but not able to find for symbian s60, please give me a any hit or example.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Oslo, Norway

    Re: How to decode 32-bit unsigned integer, big endian???

    Read from where? That may have some specific methods.
    Generally if you have 4 arbitrary bytes, b0-b3, you just combine them as
    TUint8 b0,b1,b2,b3;
    TUint32 u32=b0;
    This approach is pretty common, works in C, C++, Java, C#, just to name a few everyday language.

Similar Threads

  1. Replies: 2
    Last Post: 2011-05-19, 09:57
  2. Replies: 5
    Last Post: 2008-11-26, 16:42
  3. Replies: 8
    Last Post: 2008-07-12, 17:21
  4. are Nokia handsets small endian or big endian?
    By ishan.malviya in forum Symbian C++
    Replies: 3
    Last Post: 2008-06-18, 12:52
  5. Little Big Endian
    By Lichtens in forum Symbian C++
    Replies: 17
    Last Post: 2008-04-11, 06:29

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts