Download core/structex.py from Jatin7860/DF: direct link, hf CLI and curl.
- Browser
- Download file 175 Bytes
-
https://huggingface.co/Jatin7860/DF/resolve/main/core/structex.py
- Command line
-
hf download hf://Jatin7860/DF/core/structex.py
-
curl -L -o structex.py https://huggingface.co/Jatin7860/DF/resolve/main/core/structex.py
175 Bytes
| import struct | |
| def struct_unpack(data, counter, fmt): | |
| fmt_size = struct.calcsize(fmt) | |
| return (counter+fmt_size,) + struct.unpack (fmt, data[counter:counter+fmt_size]) | |