Skip to content

Conversation

@redboltz
Copy link
Contributor

No description provided.

@redboltz
Copy link
Contributor Author

NVP stands for Name Value Pair or Name Variable Pair.

d1.d = "ABC";

msgpack::pack(sbuf, d1);
msgpack::object_handle oh = msgpack::unpack(sbuf.data(), sbuf.size());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably check that each element has the right name here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. If the converting logic have a bug that doing something wrong at packing and converting processes, it could be generate a right result.

I will update the test.

@nobu-k
Copy link
Member

nobu-k commented Nov 2, 2016

LGTM!

@redboltz redboltz merged commit 55b51c5 into msgpack:master Nov 2, 2016
@redboltz redboltz deleted the add_map_name branch November 2, 2016 04:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants