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

Modify Serializer::Reader to work from an externally provided ByteRange #2646

Merged

Conversation

johnbartholomew
Copy link
Contributor

For #2643.

This eliminates the pointless allocation and copying that happened when Reader had its own copy of the data in a std::string, and makes it easy to create a Reader to unserialise data from a FileData object (ie, easy to use with FileSystem).

(warning: completely untested apart from checking that it compiles)

This eliminates the pointless allocation and copying that happened when
Reader had its own copy of the data in a std::string, and makes it easy
to create a Reader to deserialise data from a FileData object (ie, easy
to use with FileSystem).
@fluffyfreak
Copy link
Contributor

Quick test of saving/loading worked just fine :)

@johnbartholomew johnbartholomew merged commit 731e54a into pioneerspacesim:master Jan 13, 2014
@johnbartholomew
Copy link
Contributor Author

Merged. @fluffyfreak Thanks for testing!

@johnbartholomew johnbartholomew deleted the filesystem-serialiser branch January 13, 2014 20:33
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