Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

structex.py 175 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
  1. import struct
  2. def struct_unpack(data, counter, fmt):
  3. fmt_size = struct.calcsize(fmt)
  4. return (counter+fmt_size,) + struct.unpack (fmt, data[counter:counter+fmt_size])
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...