0 Replies - 161 Views - Last Post: 09 August 2014 - 12:09 AM Rate Topic: -----

#1 fatihmert  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 46
  • Joined: 04-March 12

struct module unpack read just 4 byte from integer types?

Posted 09 August 2014 - 12:09 AM

Hello guys,
I am trying something,

My package is data from 6. char, there is a type of ulong value. This is value, I am reading always integer types. But It has a lot of 8byte type of values like table.

Why is it not reading greater than 4byte?

Traceback (most recent call last):
  File "C:\Users\fmD\Desktop\fmdp\pack.py", line 21, in <module>
    print struct.unpack('<L',f.read(8))
error: unpack requires a string argument of length 4



Thank you for interest.
Good works.

Is This A Good Question/Topic? 0
  • +

Page 1 of 1