How to embed data within an executable?
bearophile
bearophileHUGS at lycos.com
Sun Feb 2 09:17:12 PST 2014
Gary Willoughby:
> How do you access that at runtime?
In the usual ways. A hex string is just a different kind of
literal for a string (so if you need hex data you need to cast
it, unfortunately). The mixin(import("...")) can import anything,
including your base64 data, that you can convert at compile-time
or run-time in what you need.
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list