For unpacking a strucuture from a stream its very much appreciated to expose an equivalent method to do so on structure objects.
Currently all that exists is:
@six.add_metaclass(StructureMeta)
class Structure(object):
...
def unpack(self, data, trailing=False):
But to unpack from a stream something like the following is needed;
@six.add_metaclass(StructureMeta)
class Structure(object):
...
def unpack(self, data, trailing=False):
def unpack_stream(self, stream, trailing=False):
For unpacking a strucuture from a stream its very much appreciated to expose an equivalent method to do so on structure objects.
Currently all that exists is:
But to unpack from a stream something like the following is needed;