See pack:
print pack('N',123456789); # unsigned, big-endian # output (hex): 07 5b cd 15 print pack('V',123456789); # unsigned, little-endian # output (hex): 15 cd 5b 07
In reply to Re: Need Raw Binary Output
by Anonymous Monk
in thread Need Raw Binary Output
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |