Function loadResourceBytes

Load embedded resource or arbitrary file as a byte array.

immutable(ubyte[]) loadResourceBytes (
  string filename
);

Name of embedded resource should start with @embedded@/ prefix. Name of external file is a usual path.