Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: How to easily convert the pack function from little endian to big endian

by Tux (Monsignor)
on Aug 13, 2012 at 06:30 UTC ( #987045=note: print w/ replies, xml ) Need Help??


in reply to How to easily convert the pack function from little endian to big endian

If you control both ends, either use the alread mentioned "S>" or "S<" or the network versions "n" and "v" (see perldoc -f pack).

s A signed short (16-bit) value. S An unsigned short value. n An unsigned short (16-bit) in "network" (big-endian) order. v An unsigned short (16-bit) in "VAX" (little-endian) order.

I made an overview of those pack results here for one of my talks.


Enjoy, Have FUN! H.Merijn


Comment on Re: How to easily convert the pack function from little endian to big endian
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (13)
As of 2014-08-20 16:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (119 votes), past polls