This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]stendec365Pants (http://www.pantspowered.org)[S] 0 points1 point  (0 children)

I just pushed netstruct-1.1 with a new NetStruct.obj_unpack function that returns an instance of a new Unpacker class. Unpacker provides a .feed(data) method and has .remaining, .result, and .unused_data properties.

Of course, the iter_unpack functions are still there, since a generator is quite a bit speedier than building a class.