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

Add binary format for XML i/O #236

Open
wants to merge 7 commits into
base: stable
Choose a base branch
from
Open

Add binary format for XML i/O #236

wants to merge 7 commits into from

Conversation

filiatra
Copy link
Member

NEW: base64 data encoding for XML I/O

@filiatra filiatra requested a review from a team as a code owner October 14, 2018 03:06
// Create XML tree node
gsXmlNode* new_node = internal::makeNode(name, mat, data);
return new_node;
std::ostringstream str;
Copy link
Member

Choose a reason for hiding this comment

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

who uses that stream?

bn::encode_b64(arr,arr+n*mat.size(), std::back_inserter(enc));
break;
default:
GISMO_ERROR("Something went notably wrong.. "<< n);
Copy link
Member

Choose a reason for hiding this comment

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

"Can only searialize matrices if sizeof(T) is 2, 4 or 8 bytes. Got "<<n<<" bytes."

return new_node;
std::ostringstream str;
// data.formatType() ? ascii, binary
#if FALSE
Copy link
Member

Choose a reason for hiding this comment

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

remove?

break;
default:
GISMO_ERROR("Something went notably wrong.. "<< n);
};
Copy link
Member

Choose a reason for hiding this comment

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

remove empty statement

namespace gismo {

namespace internal {

/*
inline bool is_big_endian()
Copy link
Member

Choose a reason for hiding this comment

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

needed?

@stefantakacs
Copy link
Member

seems to be a good thing. made some comments

@jzwar jzwar mentioned this pull request Aug 21, 2023
6 tasks
@jzwar jzwar mentioned this pull request Aug 31, 2023
7 tasks
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