Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Unpacking byte stream long/quad little/big endian fields

by GrandFather (Saint)
on Jan 22, 2021 at 00:54 UTC ( [id://11127252]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    ...
    
        printf "%s: %016x\n", ($fileLE ? "LE" : "BE"), $longlong;
    }
    
  2. or download this
    Perl v5.32.0 MSWin32-x86-multi-thread-64int ivsize 8 byteorder 1234567
    +8
    BE: 9134339081323180
    LE: 8031328190333491
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11127252]
Approved by LanX
Front-paged by stevieb
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2024-04-25 22:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found