You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
would it be possible to implement a support for loading data defined using the YAML tag 'binary' defined here? Does the underlying libyaml library handle those tags in any way that can be leveraged in cyaml?
It would be nice to simply define a uint8_t pointer and size_t value in an user structure and have it automatically populated by this library without having to base64 decode it manually.
The text was updated successfully, but these errors were encountered:
Once we have CYAML_BINARY, the YAML !!binary tag becomes redundant.
It would be simple to implement CYAML_BINARY in the same way as CYAML_SEQUENCE is implemented at the moment. However, CYAML_SEQUENCE has the limitation that you can't have a CYAML_SEQUENCE directly inside a CYAML_SEQUENCE. The same restriction would apply here, so a CYAML_BINARY would not be allowed directly inside a CYAML_SEQUENCE.
That means the following would not be possible:
- !!binary "DEADBEEF"- !!binary "CAFEF00D"
It would to be a sequence of mappings containing the binary data, for example:
Hello,
would it be possible to implement a support for loading data defined using the YAML tag 'binary' defined here? Does the underlying libyaml library handle those tags in any way that can be leveraged in cyaml?
It would be nice to simply define a uint8_t pointer and size_t value in an user structure and have it automatically populated by this library without having to base64 decode it manually.
The text was updated successfully, but these errors were encountered: