Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Expose unpack_stream on strucutures #28

@harlowja

Description

@harlowja

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):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions