Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Conversation

dawagner
Copy link
Contributor

@dawagner dawagner commented Sep 8, 2016

Using the new Binary context mapping, parameters can now be written
in binary format (in-memory serialization).

The File instanciation mapping can now be asigned to blocks of
parameters (but only in combination with the Binary context mapping,
i.e. blocks can only be serialized in binary format).

Signed-off-by: David Wagner [email protected]

Using the new `Binary` context mapping, parameters can now be written
in binary format (in-memory serialization).

The `File` instanciation mapping can now be asigned to blocks of
parameters (but only in combination with the `Binary` context mapping,
i.e. blocks can only be serialized in binary format).

Signed-off-by: David Wagner <[email protected]>
@dawagner dawagner self-assigned this Sep 8, 2016
@dawagner
Copy link
Contributor Author

dawagner commented Sep 8, 2016

@krocard @gdenneul please review.


fromString(formatedContent, blackboardContent, _scalarSize);
if (_isBinary) {
auto read = inputFile.readsome(blackboardContent, _scalarSize);
Copy link
Contributor

@krocard krocard Sep 9, 2016

Choose a reason for hiding this comment

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

Open the file in binary form. Even if it is not strictly required on Linux as \n have no special meaning.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants