mojo: Add deserialization to python structs.
commit37dd5f484593b1c8b92b825a9648edf7fb6944e6
authorqsr <qsr@chromium.org>
Fri, 19 Sep 2014 09:49:36 +0000 (19 02:49 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 19 Sep 2014 09:49:50 +0000 (19 09:49 +0000)
tree5b0f5c8567fe8e0a729a0778f8220a5a4cf8f7ec
parent7075322754d57ae4dc55001d9ef5d596fd07f588
mojo: Add deserialization to python structs.

This is a reland of https://codereview.chromium.org/578263003 using
buffer instead of memoryview, because on some early version of python
2.7, memoryview cannot be used with struct.unpack_from.

BUG=415491
R=sdefresne@chromium.org,cmasone@chromium.org

Review URL: https://codereview.chromium.org/588493002

Cr-Commit-Position: refs/heads/master@{#295684}
mojo/public/python/mojo/bindings/descriptor.py
mojo/public/python/mojo/bindings/reflection.py
mojo/public/python/mojo/bindings/serialization.py
mojo/python/tests/bindings_serialization_deserialization_unittest.py