Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd to_vec function for writing PNG data to a Vec<u8>. #68
Conversation
|
Can you add a test for this? I figured it would call to_vec and then verify the first bytes were the PNG magic bytes and that the total length was the expected one. Otherwise, looks fine. |
This mostly copies the implementation of store_png, and could probably be refactored to share more code in the future.
|
This is rebased onto master, but with the tests in a separate commit, because they won't trivially backport to the current servo branch (but the actual functionality will). |
|
Squash and r=me. |
|
Or are you saying you want to leave the tests in their own commit? If so, maybe change the commit message to not have fixup! in it? |
|
I'm happy to squash, but unless the rust upgrade is about to land it would be useful to create a servo branch with 16a9dba cherry-picked on top of the current servo commit. |
|
Seems reasonable then. Just change the commit message to 'Add tests for to_vec.' and I'll merge this. |
Add to_vec function for writing PNG data to a Vec<u8>.
jgraham commentedApr 28, 2015
This mostly copies the implementation of store_png, and could
probably be refactored to share more code in the future.