mirror of
https://gitlab.com/mirrors_git/DeepFaceLab.git
synced 2025-12-06 12:20:56 +01: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])
|