Skip to content
This repository was archived by the owner on May 11, 2019. It is now read-only.

Comments

Return remaining text from Unmarshal().#3

Open
jtacoma wants to merge 1 commit intoedsrzf:masterfrom
jtacoma:unmarshal-rest
Open

Return remaining text from Unmarshal().#3
jtacoma wants to merge 1 commit intoedsrzf:masterfrom
jtacoma:unmarshal-rest

Conversation

@jtacoma
Copy link

@jtacoma jtacoma commented Nov 26, 2012

When a TNetstring is followed by other data (e.g. other TNetstrings) it's useful to know what that other data is. An additional method could be added, but the current minimal Marshal/Unmarshal is nice and clean. This is a minimal change to make that trailing data easily available.

I found this necessary when parsing Mongrel2 messages. Unfortuantely, it is a backwards-incompatible change.

When a TNetstring is followed by other data (e.g. other TNetstrings)
it's useful to know what that other data is.  An additional method could
be added, but the current minimal Marshal/Unmarshal is nice and clean.
This is a minimal change to make that trailing data easily available.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant