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

Add binary and block serialization features#10

Open
dawagner wants to merge 1 commit into
masterfrom
binary
Open

Add binary and block serialization features#10
dawagner wants to merge 1 commit into
masterfrom
binary

Conversation

@dawagner

@dawagner dawagner commented Sep 8, 2016

Copy link
Copy Markdown
Contributor

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 david.wagner@intel.com

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 <david.wagner@intel.com>
@dawagner dawagner self-assigned this Sep 8, 2016
@dawagner

dawagner commented Sep 8, 2016

Copy link
Copy Markdown
Contributor Author

@krocard @gdenneul please review.

Comment thread FSSubsystemObject.cpp

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

@krocard krocard Sep 9, 2016

Copy link
Copy Markdown
Contributor

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