in reply to Lost in unpack hell
I tried using n2 on the basis that the field is supposed to be twice as long
'N' is a unsigned 32-bit (4 byte) value using the same byte ordering as 'n'
'Q>' is a unsigned 64-bit (8 byte) value using the same byte ordering as 'n'
From the info you gave us, you want
which can also be written asunpack 'a a n N Q> a*'
unpack 'a a S> L> Q> a*'
That said,
I know from the output of the other program that the ClOrdID in this message is "4295075805"
The long string you gave for ClOrdID translates to 04C6A29EBAD1E5BB(base16).
You're expecting 4295075805(10) = 000000010001A7DD(16)
No matter how you rearrange the hex digit pairs, those will never match. It's clearly not a byte ordering problem.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Lost in unpack hell
by stevehicks (Sexton) on Feb 11, 2010 at 10:43 UTC | |
by zentara (Cardinal) on Feb 11, 2010 at 12:19 UTC | |
by stevehicks (Sexton) on Feb 11, 2010 at 17:09 UTC | |
by ikegami (Patriarch) on Feb 11, 2010 at 16:00 UTC | |
by stevehicks (Sexton) on Feb 11, 2010 at 17:17 UTC |