in reply to native byte order integer and utf-8

If you need unsigned 32-bit numbers of a particular endianess, use either 'V' for little-endian or 'N' for network-order (big-endian).

Cuts out the guesswork and platform dependence of the other 32-bit(ish) templates.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re: native byte order integer and utf-8

Replies are listed 'Best First'.
Re^2: native byte order integer and utf-8
by bhildred (Novice) on Dec 08, 2013 at 16:20 UTC

    I knew about V and N but the spec says native byte order, And since I didn't write the spec . . .

      but the spec says native byte order,

      Native to what? The producer? The consumer?

      What does the spec say about data transferred from little-endian to big-endian or vice versa?


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.