SharedObject.getPath

char[] getPath(size_t N)(ref char[N] buffer) if (N > 1) const

Tries to fill the specified buffer with the path to the ELF file, according to the /proc/<PID>/maps file.

Returns

The filled slice (null-terminated), or null if an error occurs.