Reading from a stream very likely returns packed data with an incomplete object at the end. To unpack what's ready and continue to unpack the incomplete object once more data arrived one needs to know how much of the given data has been unpacked.
This PR changes the return value of MessagePack.unpack(data) if called with a block from self to the offset in data after the last complete unpack operation.
Reading from a stream very likely returns packed data with an incomplete object at the end. To unpack what's ready and continue to unpack the incomplete object once more data arrived one needs to know how much of the given data has been unpacked.
This PR changes the return value of
MessagePack.unpack(data)
if called with a block fromself
to the offset indata
after the last complete unpack operation.