Skip to content

Add overload for load_data to use raw C strings as source#13

Open
HelloOO7 wants to merge 1 commit into
craflin:masterfrom
HelloOO7:master
Open

Add overload for load_data to use raw C strings as source#13
HelloOO7 wants to merge 1 commit into
craflin:masterfrom
HelloOO7:master

Conversation

@HelloOO7

Copy link
Copy Markdown

Background: I am using this library on an ESP32 where we store XML data in external SPI RAM. Currently, xsdcpp only allows loading data from a std::string or a file (which loads into std::string anyway), which would require us to use main memory for the source data, which is often unfeasible due to space constraints.

This PR adds a simple overload to allow using a const char* directly, bypassing the std::string interface requirement. It passes all provided tests.

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.

1 participant