Skip to content
Discussion options

You must be logged in to vote

Hmm. This appears to be a feature gap in the C api. For many of the functions that return strings (like adios2_variable_type_string()), you call the function with a NULL buffer pointer first to get the size filled in, then call it again with a properly allocated buffer. This is not possible with the simple adios2_get() API that is used for string variables. The only reasonable workaround I can suggest is to use a buffer that you know is large enough. That's not a great answer, but it's the only thing I can think of at the moment.

Replies: 6 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by johnomotani
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@johnomotani
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@johnomotani
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants