Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: native byte order integer and utf-8

by BrowserUk (Patriarch)
on Dec 08, 2013 at 07:52 UTC ( #1066195=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1066195]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2022-08-18 08:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?