<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def unpack(self, struc):
 """ Unpacks given structure from stream :param struc: A struct.Struct instance :returns: Result of unpacking """

        buf, offset = readall_fast(self, struc.size)
        return struc.unpack_from(buf, offset)