mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2024-12-24 23:11:12 -08:00
6 lines
175 B
Python
6 lines
175 B
Python
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])
|