Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/resource binary marshal #29

Merged
merged 2 commits into from
Mar 8, 2017
Merged

Conversation

jessecarl
Copy link
Member

No description provided.

Adds both `MarshalBinary` and `UnmarshalBinary` methods to the
`Resource` type. The binary format contains a header, static body, and
dynamic body.
    Header (4 bytes):
      0:1 Magic Bytes 0x90 0xe9
      2   Version for Resource binary
      3   Length of dynamic body (FriendlyName)
    Static Body (32 bytes):
      4:19  ID
      20    Status
      21:35 Since
    Dynamic Body (<255 bytes):
      36:? FriendlyName
Adds test cases for a bad status byte and bad bytes in the time frame.
@jessecarl jessecarl merged commit 4b59314 into master Mar 8, 2017
@jessecarl jessecarl deleted the feature/resource-binary-marshal branch March 8, 2017 02:30
@coveralls
Copy link

coveralls commented Mar 8, 2017

Coverage Status

Coverage decreased (-1.3%) to 89.189% when pulling efb8da0 on feature/resource-binary-marshal into 287d54e on master.

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.

None yet

2 participants