A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
I/O and Streams
Python's struct.pack in Java
Joined: Jul 09, 2010
Jul 09, 2010 03:35:45
Is there any function equivalent to Python's struct.pack in
that allows me to pack and unpack values like this?
pump_on = struct.pack("IIHHI", 0, 0, 21, 96, 512)
Joined: Mar 22, 2005
Jul 09, 2010 03:45:19
Same question as
, closing this one.
If you have two accounts, let us now which one you want to keep so that we can close the other one.
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: Python's struct.pack in Java
JPython - what is it exactly?
Jython with JDK1.5
CRC16 with Polynominal : 0x8408, and Preset CRC : 0x6363
Why Java at all?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014